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

Label Formatting Please Provide Documentation

1 Answer 73 Views
Chart
This is a migrated thread and some comments may be shown as answers.
5280_Dev
Top achievements
Rank 1
5280_Dev asked on 04 Aug 2010, 06:30 PM
Hello,

I have a graph and the Y axis ranges from 1 to 5 million or more. Now a label 3,350,000 is not really a problem except that I am tight on horizontal space and I would rather allow more real estate to the graph than the label. So I am trying to get my Y axis label format 3,350,000 to look like 3.350 mil. and I can find nothing in the documentation about how to do it or similiar. The closest I found is using "0, mil." which produces 3350 mil. and I found that using Google!!! I have read these links http://www.telerik.com/help/silverlight/radchart-features-format-expressions.html and  http://www.telerik.com/help/silverlight/radchart-features-tooltips.html and I did learn something from them but a simple Google search reveals there are far more formatting options available that I can't find educational material on???

I would be grateful for an example or something similiar and I would be really grateful if someone would provide a link to documentation that I can use to really master these label format options. I WOULD WRITE THE DOC FOR ALL if someone wanted to just brain dump me the information.

Thank You

1 Answer, 1 is accepted

Sort by
0
Ves
Telerik team
answered on 09 Aug 2010, 01:00 PM
Hello,

The DefaultLabelFormat property specifies the format applied to axis labels. This format can be any Standard Numeric Format String or Custom Numeric Format String. In this specific case you can use this value:
RadChart1.DefaultView.ChartArea.AxisY.DefaultLabelFormat = "0,,.0 mil";


Sincerely,
Ves
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
5280_Dev
Top achievements
Rank 1
Answers by
Ves
Telerik team
Share this question
or