Linear Axis autorange question

2 posts, 0 answers
  1. Arik
    Arik avatar
    3 posts
    Member since:
    Dec 2010

    Posted 11 Jul 2011 Link to this post

    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.

  2. Georgi
    Georgi avatar
    296 posts

    Posted 12 Jul 2011 Link to this post

    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.

    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!

  3. DevCraft banner
Back to Top