Percent sign on Y-axis

3 posts, 1 answers
  1. AS
    AS avatar
    8 posts
    Member since:
    Aug 2010

    Posted 26 Oct 2010 Link to this post

    Hello,

    I am trying to display values on the Y-axis as a percent using:

            radChart1.DefaultView.ChartArea.AxisY.DefaultLabelFormat = "p";

    However, there is a space between the number and the % sign.  How to get rid of the space?

    Thanks,
    AS

    PS: Tried using

            radChart1.DefaultView.ChartArea.AxisY.DefaultLabelFormat = "#VAL%";

    but then the values are not multiplied by 100.  The space does go away.

  2. Answer
    Evgenia
    Admin
    Evgenia avatar
    1437 posts

    Posted 28 Oct 2010 Link to this post

    Hi Ashutosh,

    You can set percent sign right next after the tick value on Y Axis by setting this Custom Numeric Format (http://msdn.microsoft.com/en-us/library/0c899ak8.aspx) string:
    RadChart1.DefaultView.ChartArea.AxisY.DefaultLabelFormat = "#VAL{#,#.00%}";

    Best wishes,
    Evgenia
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. AS
    AS avatar
    8 posts
    Member since:
    Aug 2010

    Posted 28 Oct 2010 Link to this post

    Hi Evgenia, your suggestion worked perfectly.  Thanks.
Back to Top