This is a migrated thread and some comments may be shown as answers.

Change default mil to m

1 Answer 74 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Vasiliy kravchenko
Top achievements
Rank 1
Vasiliy kravchenko asked on 24 Jun 2010, 02:31 PM
Hi just have a quick question in regards to chart's Axis default labels. If I have values over 1000 chart will convert those values into something like this 1K, 2K, 3K, etc.... If I have values over 1,000,000 then chart will convert them into 1 mil, 2 mil, 3 mil, etc... Is there any way to change mil to m for default labeling? if I try something like this as my default format string {0} m, chart will display it as 1,000,000 m. I want it to display 1 m. I wonder if I could do it without modifying my query.

Thank you!

1 Answer, 1 is accepted

Sort by
0
Sia
Telerik team
answered on 30 Jun 2010, 09:41 AM
Hi Vasiliy kravchenko,

RadChart supports custom and standard numeric strings for its labels formatting.

You can achieve the functionality you need by setting:
RadChart1.DefaultView.ChartArea.AxisX.DefaultLabelFormat = "0,,m";

Kind regards,
Sia
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items
Tags
Chart
Asked by
Vasiliy kravchenko
Top achievements
Rank 1
Answers by
Sia
Telerik team
Share this question
or