Y-Axis Scale Format

Thread is closed for posting
6 posts, 0 answers
  1. meraj
    meraj avatar
    47 posts
    Member since:
    Dec 2010

    Posted 20 Dec 2010 Link to this post

    I want to display the scale of Y-Axis in Custom Format,  i-e  instead of displaying 10,000 I want to show 10K. ?

  2. Ves
    Ves avatar
    2926 posts

    Posted 22 Dec 2010 Link to this post

    Hi meraj,

    This is the line, which will do the trick:

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

    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.
  3. kellyroberts
    kellyroberts avatar
    45 posts
    Member since:
    Jul 2007

    Posted 22 Feb 2011 Link to this post

    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?

  4. Giuseppe
    Giuseppe avatar
    2363 posts

    Posted 23 Feb 2011 Link to this post

    Hello kellyroberts,

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

    Hope this helps.

    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!
  5. Shoaib
    Shoaib avatar
    1 posts
    Member since:
    Sep 2012

    Posted 19 Sep 2012 Link to this post

    Setting Axis y label format="0, K" worked really fine.
  6. WarriorJorge
    WarriorJorge avatar
    3 posts
    Member since:
    Aug 2011

    Posted 04 Sep 2013 Link to this post

    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
Back to Top