horizontal zoom and fitting Y axis min/max to scope

2 posts, 1 answers
  1. Eyal Ellenbogen
    Eyal Ellenbogen avatar
    11 posts
    Member since:
    Jul 2009

    Posted 22 Jun 2012 Link to this post


    When setting the chart to have only horizontal zoom/pan... is there a way of making the Y axis automatically adjust the min/max values to show only the relevant data? 
    Let's say my app is monitoring some sort of an event and i'm receiving live data for about 3 hours. Let's say I have concurrent users information streaming in. In the first hour, the average is about 10-100 concurrent users and in the 3rd hour I reach 50,000 users. The min/max values will be 0 and 50,000. "peaks" and variations of 500 users will look very small even when zooming in. The only way to make them look significant is to adjust the Y axis min/max to the relevant scope and show 40,000-50,000 and not 0-50,000.

    So, what's the easiest way to do that?


    (2012 Q2, SL5)
  2. Answer
    Yavor avatar
    401 posts

    Posted 27 Jun 2012 Link to this post

    Hi Eyal,

    RadChart can automatically calculate the range of its axes when it is not specified. When you zoom the data that the chart gets is filtered only for the period currently visible. This means that if you have an automatic range on the Y axis it will automatically adjust to show the values that you zoomed into. The range will be updated every time you zoom-in our out.

    All the best,
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top