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

Set Manual Step for AutoRange

2 Answers 31 Views
Chart
This is a migrated thread and some comments may be shown as answers.
David Huxtable
Top achievements
Rank 1
David Huxtable asked on 13 Feb 2012, 02:25 AM

Good Morning,

I am happy with the min and max values the AutoRange is providing for the Y-Axis for my line chart but the AutoRange has a step of 20 and I prefer 10.

Is it possible to set a manual step if setting AutoRange to true?

Furthermore, is it possible to set a max value for the AutoRange to use, as I notice the y range ends a little higher than it really needs to? For example, the Y-Axis range may start at 0 and end at 15 when it really only needs to end at 10, as the highest Y value is 9.5.

Thank you in advance,

David.

2 Answers, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 15 Feb 2012, 09:18 AM
Hi David,

It is not possible to set only Step, while using the AutoRange, neither is it possible to set only the Min or Max. In either of your cases the best solution would be to set the AutoRange to false and set a manual Min, Max and Step values.

Kind regards,
Nikolay
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
David Huxtable
Top achievements
Rank 1
answered on 16 Feb 2012, 01:32 AM
Thank you Nikolay,

The reason I was trying not to set Min/MaxValue and Step is due to the step on the

I did manage to set Min/MaxValue but I wouldn't have minded and AutoRange for the step so that as the window is resized, the Step range is changed to accomodate for the new ChartArea size.

In the end I set AutoRange to true and set AxisY.ExtendDirection property to None, so that the Y-Axis range is sized around the data or seems that way. For instance, if the maximum Y value is 113, the Y-Axis range may end at 120, rather than 130 and the range will change as the window resizes. This seems to work for me.

David.
Tags
Chart
Asked by
David Huxtable
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
David Huxtable
Top achievements
Rank 1
Share this question
or