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, default its shows,
    1k,1 mil,1tri,etc..
    i just want to show the first label like (k,m,t..etc) it possible to give style or format behavior ?
  2. Peshito
    Peshito avatar
    585 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.

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