Label Formatting Please Provide Documentation

2 posts, 0 answers
  1. 5280_Dev
    5280_Dev avatar
    4 posts
    Member since:
    Jul 2010

    Posted 04 Aug 2010 Link to this post


    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 and 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
  2. Ves
    Ves avatar
    2926 posts

    Posted 09 Aug 2010 Link to this post


    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";

    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
Back to Top