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

Yaxis maxvalue

1 Answer 45 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Marko Gluhak
Top achievements
Rank 1
Marko Gluhak asked on 14 Dec 2008, 03:18 PM
Hi,

I'm trying to accomplish following:

I have graphs that represents percentage. So max value of graph iss 100%. In case when I have graph that si 100% I want my chart to extend to 110 but I must not set that last label to true.

I have setup this:

grafikon.PlotArea.YAxis.AxisMode =

ChartYAxisMode.Extended;

 

grafikon.PlotArea.YAxis.AutoScale =

false;

 

grafikon.PlotArea.YAxis.MaxValue = 105;

grafikon.PlotArea.YAxis.MinValue = 0;

grafikon.PlotArea.YAxis.Step = 10;

Basicly I wanted that chart can go only up to y value of 105 but when I set step parameter graph goes to 110 and writes label 110 on yaxis. That is confusing for my clients because they think they can have 110% of something.

1 Answer, 1 is accepted

Sort by
0
Vladimir Milev
Telerik team
answered on 16 Dec 2008, 09:07 AM
Hi Marko Gluhak,

Please use the PrePaint event of RadChart to iterate over the axis items and set the text of the last axis item to an empty string. This should override the label.

Best wishes,
Vladimir Milev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Chart (Obsolete)
Asked by
Marko Gluhak
Top achievements
Rank 1
Answers by
Vladimir Milev
Telerik team
Share this question
or