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

Percent sign on Y-axis

2 Answers 134 Views
Chart
This is a migrated thread and some comments may be shown as answers.
AS
Top achievements
Rank 1
AS asked on 26 Oct 2010, 11:16 PM

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 Answers, 1 is accepted

Sort by
0
Accepted
Evgenia
Telerik team
answered on 28 Oct 2010, 05:50 PM
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
0
AS
Top achievements
Rank 1
answered on 28 Oct 2010, 10:07 PM
Hi Evgenia, your suggestion worked perfectly.  Thanks.
Tags
Chart
Asked by
AS
Top achievements
Rank 1
Answers by
Evgenia
Telerik team
AS
Top achievements
Rank 1
Share this question
or