We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Chart Lebel value

Hai,
How to round the chart label value in syncfusion chart.(Type=StackingColumn)

3 Replies

SK Sanjith Kesavan Syncfusion Team October 15, 2015 10:54 AM UTC

Hi Vijaykumar,
Thanks for contacting Syncfusion support. We have analyzed your query. For rounding the chart label values you can use the “LabelFormat” property for the axis. Please find the below code example

[ASPX]


In the above code example we have set the “LabelFormat” for the PrimaryXAxis as “N3”. This is used to round the PrimaryXAxis label, with three numbers after the decimal point. Please find the below screenshot.

In the above screenshot PrimaryXAxis labels are rounded three numbers after the decimal points. If the “LabelFormat” is given as “N2” then PrimaryXAxis labels are rounded two numbers after the decimal points.
Suffix added after “N” specify the number of rounding places for the labels.

We have prepared the sample as per your requirement. Please find the sample from below mentioned location.
Sample Link: http://www.syncfusion.com/downloads/support/forum/120793/ze/WebApplication22055509727


If this sample does not meet your requirement, then please let us know by adding more details about your requirement.

Please let us know if you have any concern.

Regards,
Sanjith K.


VI Vijaykumar October 15, 2015 01:55 PM UTC

hi Sanjith,

Thanks for quick response. It's  is working fine.
for my case I use the property labelformat=N3 in YAxis then it will so like below. kindly help me.



SK Sanjith Kesavan Syncfusion Team October 16, 2015 12:30 PM UTC

Hi VijayKumar,

Sorry for the inconvenience caused. Image attached in the last update is not visible and so we cannot understand what is the problem you are facing. Please zip the image file and attach it. This will be helpful for us to fix your problem sooner.

Please let us know if you have any concern.

Regards,
Sanjith K.

Loader.
Up arrow icon