how to customize human reable property ?

2 posts, 0 answers
  1. Saravanan
    Saravanan avatar
    36 posts
    Member since:
    Jun 2011

    Posted 18 Oct 2011 Link to this post

    Hi team,
    i want to show y axis value like 1k,1m,1t,etc.by default its shows,
     
    1k,1 mil,1tri,etc..
     
    i just want to show the first label like (k,m,t..etc)..is it possible to give style or format behavior ?
     
    Thanks,
    Saravanan
  2. Peshito
    Admin
    Peshito avatar
    550 posts

    Posted 20 Oct 2011 Link to this post

    Hi Saravanan,

    You could use the DefaultLabelFormat property like this for example:
    RadChart.DefaultView.ChartArea.AxisY.DefaultLabelFormat = "#VAL{#,, mil}";
    Each " , " divides your value by 1000 and {# , , mil} will add "mil" sign at the end of your Y-Axis labels.

    You should also know that label formatting is exclusive with the human readable digits, so before doing the above approach, set the ChartArea.LabelFormatBehavior to None.

    Hope that helps.

    Greetings,
    Peshito
    the Telerik team
    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
Back to Top