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

Percentages in Graph

1 Answer 82 Views
Chart
This is a migrated thread and some comments may be shown as answers.
StevenDale
Top achievements
Rank 2
StevenDale asked on 23 Aug 2010, 03:32 AM
I am using percentages in my graphs but the y-axis label as well as the item labels show 100% as 100.00% or 95% as 95.00%. Is there a way to make it show only whole numbers?

Thanks,

Billy Jacobs

1 Answer, 1 is accepted

Sort by
0
Accepted
Sia
Telerik team
answered on 23 Aug 2010, 09:10 AM
Hello Billy Jacobs,

Please try the following approach and let me know whether it is appropriate for you:
RadChart1.DefaultView.ChartArea.AxisY.MinValue = 0;
RadChart1.DefaultView.ChartArea.AxisY.MaxValue = 1;
RadChart1.DefaultView.ChartArea.AxisY.Step = 0.1;
RadChart1.DefaultView.ChartArea.AxisY.DefaultLabelFormat = "#VAL{p0}";


Thank you,
Sia
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
Tags
Chart
Asked by
StevenDale
Top achievements
Rank 2
Answers by
Sia
Telerik team
Share this question
or