I would like to show integer instead of double as a label for y-axis in Numerical Axis of
RadCartesianChart . Chart is dynamically created and added to a stack. Is there any chart property that can modify data shown in y-axis?
Regards,
Prava
1 Answer, 1 is accepted
0
Lance | Manager Technical Support
Telerik team
answered on 13 Oct 2016, 06:29 PM
Hi Prava,
You can use the Axis's LabelFormat property to apply a string format to the tick value. Go here to see available label properties and another example of setting LabelFormat per-platform).
Here is an example:
axis.LabelFormat = "N2";
In your case, you might want to use the N0 format (number with no decimal places). To learn more about numerical string formats, go here for MSDN docs or here for Xamarin docs.
If you have any further difficulty with this please let us know. Thank you for contacting Support and for choosing Telerik by Progress.
Regards,
Lance | Tech Support Engineer, Sr.
Telerik by Progress
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Feedback Portal
and vote to affect the priority of the items