I want to change the DefaultLabelFormat of my charts to thousands. Everytime I create the charts, the Y axis automatically gets adjusted in millions(mil) according to the data received, but instead of coverting into millions(mil) I want this to get convert into thousands(K) irrespective of data.
How can I achieve this??
How can I achieve this??
4 Answers, 1 is accepted
0
rahul
Top achievements
Rank 1
answered on 22 Aug 2011, 01:02 PM
Hello Telerik Team can you please help me me out.
0
Hello Rahul,
You can specify any Custom Numeric Format String to your Axis Labels. For your scenario - you can use the fact that using the "," custom specifier the number to be formatted is divided by 1000 for each comma and set the DefaultLabelFormat of the Axis to something like: "#VAL{0,}".
Regards,
Evgenia
the Telerik team
You can specify any Custom Numeric Format String to your Axis Labels. For your scenario - you can use the fact that using the "," custom specifier the number to be formatted is divided by 1000 for each comma and set the DefaultLabelFormat of the Axis to something like: "#VAL{0,}".
Regards,
Evgenia
the Telerik team
Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>
0
rahul
Top achievements
Rank 1
answered on 24 Aug 2011, 11:37 AM
Thank you very much Evgenia.
My requirement is to change the formatting like value 1860446.5456 to 1,860.45 K
Using the below fomat string I'm getting 1,860 K
I know this is more of formatting issue rather than telerik. Any help is higly appreciated!!
Between I have posted one more question regarding chart in another thread regarding changing the display value on Y-Axis and expecting the quick reply on that.
http://www.telerik.com/community/forums/silverlight/chart/barchart-with-differernt-color.aspx
My requirement is to change the formatting like value 1860446.5456 to 1,860.45 K
Using the below fomat string I'm getting 1,860 K
mapping1.SeriesDefinition.ItemLabelFormat =
"#Y{#,##0, k}";
I know this is more of formatting issue rather than telerik. Any help is higly appreciated!!
Between I have posted one more question regarding chart in another thread regarding changing the display value on Y-Axis and expecting the quick reply on that.
http://www.telerik.com/community/forums/silverlight/chart/barchart-with-differernt-color.aspx
0
Hi Rahul,
The other thread that you mentioned has the answer to this question already. Just change the ItemLabelFormat to this:
Regards,
Evgenia
the Telerik team
The other thread that you mentioned has the answer to this question already. Just change the ItemLabelFormat to this:
mapping1.SeriesDefinition.ItemLabelFormat = "#Y{#,##0,.00 k}"
Regards,
Evgenia
the Telerik team
Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>