Set Manual Step for AutoRange

3 posts, 0 answers
  1. David Huxtable
    David Huxtable avatar
    14 posts
    Member since:
    Mar 2009

    Posted 12 Feb 2012 Link to this post

    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. Nikolay
    Admin
    Nikolay avatar
    386 posts

    Posted 15 Feb 2012 Link to this post

    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 >>
  3. UI for WPF is Visual Studio 2017 Ready
  4. David Huxtable
    David Huxtable avatar
    14 posts
    Member since:
    Mar 2009

    Posted 15 Feb 2012 Link to this post

    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.
Back to Top