How can I format the value in the chart to display as $8.7M when my data is 879773.
I have currently set it to the following:
s.DefaultLabelValue =
"#Y{#,##0}"
Thank you
shahab
2 Answers, 1 is accepted
0
Accepted
Dessy
Telerik team
answered on 04 May 2009, 11:07 AM
Hi shahab,
RadChart provides two properties for label formatting (Axis labels and item labels)- ValueFormat and CustomFormat.
ValueFormat is an Enumeration and CustomFormat takes Standard Numeric Formats and Custom Numeric Formats values. For example you can set CustomFormat property to 'C0' and then all YAxis values will be displayed in currency without decimals: RadChart.PlotArea.YAxis.Appearance.CustomFormat = "C0"; You can customize item labels value by setting value to DefaultLabelValue property and using Standard Numeric Formats and Custom Numeric Formats.