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

Linear Axis autorange question

1 Answer 98 Views
Chart
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Arik
Top achievements
Rank 1
Arik asked on 12 Jul 2011, 04:28 AM
It seems that when autorange is set to true (e.g., no specified min/max) -- the chart control still bounds the axis minimum to 0 (as opposed to the smallest datapoint).  The maximum works as expected.

Is this the expected behavior?  I was hoping to have the chart zoom to show the most info.

Thanks,
Arik

1 Answer, 1 is accepted

Sort by
0
Georgi
Telerik team
answered on 12 Jul 2011, 08:55 AM
Hi Arik,

Thank you for contacting us.

Auto-range in the linear axis is determined by finding the Min/Max values of the plotted data points and then this range is extended as specified by the RangeExtendDirection property. The logic behind extending mechanism is pretty much like in the Microsoft's Excel charts. So, if you do not want to extend the minimum, you may specify the extend direction as appropriate:

(this.radChart1.YAxis as LinearAxis).RangeExtendDirection = NumericalAxisRangeExtendDirection.None;

I hope this help. Do not hesitate to contact us with any question/problem you may have with our tools.

Regards,
Georgi
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Tags
Chart
Asked by
Arik
Top achievements
Rank 1
Answers by
Georgi
Telerik team
Share this question
or