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

Y-Axis Scale Format

5 Answers 162 Views
Chart (obsolete as of Q1 2013)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
meraj
Top achievements
Rank 1
meraj asked on 20 Dec 2010, 08:51 AM
I want to display the scale of Y-Axis in Custom Format,  i-e  instead of displaying 10,000 I want to show 10K. ?

5 Answers, 1 is accepted

Sort by
0
Ves
Telerik team
answered on 22 Dec 2010, 05:00 PM
Hi meraj,

This is the line, which will do the trick:

radChart1.PlotArea.YAxis.Appearance.CustomFormat = "0,K";

Regards,
Ves
the Telerik team
Q3’10 SP1 of RadControls for WinForms is available for download; also available is the Q1'11 Roadmap for Telerik Windows Forms controls.
0
kellyroberts
Top achievements
Rank 1
answered on 22 Feb 2011, 04:31 PM
Hi Ves -

can you explain how CustomFormat = "0,K" works?  I get what it does, I just dont understand what its based on.  is this regex? or telerik specific?


0
Giuseppe
Telerik team
answered on 23 Feb 2011, 11:16 AM
Hello kellyroberts,

The format is based on the custom numeric format strings supported by the .Net Framework.

Hope this helps.


Greetings,
Giuseppe
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
Shoaib
Top achievements
Rank 1
answered on 19 Sep 2012, 12:43 PM
Setting Axis y label format="0, K" worked really fine.
0
WarriorJorge
Top achievements
Rank 1
answered on 04 Sep 2013, 07:37 PM
I was not able to get this custom format to work - it is appearing literally - "0,K" - to fix this, remove the double quotes and simply place the 0,K in this property.

Thank you
Tags
Chart (obsolete as of Q1 2013)
Asked by
meraj
Top achievements
Rank 1
Answers by
Ves
Telerik team
kellyroberts
Top achievements
Rank 1
Giuseppe
Telerik team
Shoaib
Top achievements
Rank 1
WarriorJorge
Top achievements
Rank 1
Share this question
or