Chart zoom

3 posts, 0 answers
  1. Ales
    Ales avatar
    5 posts
    Member since:
    Dec 2011

    Posted 05 Dec 2011 Link to this post

    Hi all,

    knows somebody how to :
    1) zoom-in, zoom-out chart by mous click ?
    2) scrool min and max values in X axes ?

    For scrolling I have used :

                    myChart.PlotArea.XAxis.AutoScale = false;
                    myChart.PlotArea.XAxis.IsZeroBased = false;
                    myChart.PlotArea.XAxis.AddRange(0, 20, 1);

                    myChart.HorizontalScroll.Enabled = true;
                    myChart.HorizontalScroll.Visible = true;
                    myChart.HorizontalScroll.Minimum = 0;
                    myChart.HorizontalScroll.Maximum = 2000;
                    myChart.HorizontalScroll.SmallChange = 1;
                    myChart.HorizontalScroll.LargeChange = 100;

    but i see only fisrt 20 not possible scrool to another.

    Thanks for your help
  2. Ves
    Ves avatar
    2879 posts

    Posted 07 Dec 2011 Link to this post

    Hi Ales,

    I am afraid zooming and scrolling is not directly supported in RadChart for Windows Forms. You can check Nikolay's suggestion to place the chart in a panel and use automatic scrolling.

    Best regards,
    the Telerik team

    Q3’11 of RadControls for WinForms is available for download (see what's new). Get it today.

  3. UI for WinForms is Visual Studio 2017 Ready
  4. David
    David avatar
    3 posts
    Member since:
    Sep 2012

    Posted 15 Feb 2012 Link to this post

    Could you set the charts visible attribute to false, then draw the chart as a bitmap into a container setting it to stretch then grow and shrink the container to pseudo zoom? Crazy idea but...
Back to Top