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

how to customize human reable property ?

1 Answer 35 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Saravanan
Top achievements
Rank 1
Saravanan asked on 18 Oct 2011, 08:37 AM
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

1 Answer, 1 is accepted

Sort by
0
Peshito
Telerik team
answered on 20 Oct 2011, 03:10 PM
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 >>
Tags
Chart
Asked by
Saravanan
Top achievements
Rank 1
Answers by
Peshito
Telerik team
Share this question
or