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

Format Percent Y Axis

1 Answer 145 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Wagner
Top achievements
Rank 1
Wagner asked on 12 Nov 2012, 06:46 PM
Hello

I'm not able to format the column y Axis percentage correctly. As this image continues to 10,000%, not 100%. I want the formatting looks like this: 0%, 10%, 20%, ..., 100%.
Another doubt is how to place a line with fixed value. I put a line with value of 80% that would be my goal to be achieved but until now could not. Please help me out and now thanks.

1 Answer, 1 is accepted

Sort by
0
Accepted
Steve
Telerik team
answered on 15 Nov 2012, 04:01 PM
Hello Wagner,

To have an Yaxis marked from 0% to 100% try the following code snippet:
Copy Code
chart1.PlotArea.YAxis.AutoScale = False
chart1.PlotArea.YAxis.AddRange(0, 100, 10)
chart1.PlotArea.YAxis.Appearance.ValueFormat = ChartValueFormat.Percent

About a fixed line, you can either create a line series at a fixed location or used MarkedZone for this purpose.

Greetings,
Steve
the Telerik team

HAPPY WITH TELERIK REPORTING? Do you feel that it is fantastic? Or easy to use? Or better than Crystal Reports? Tell the world, and help fellow developers! Write a short review about Telerik Reporting and Telerik Report Designer in Visual Studio Gallery today!

Tags
General Discussions
Asked by
Wagner
Top achievements
Rank 1
Answers by
Steve
Telerik team
Share this question
or