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

Chart zoom

2 Answers 191 Views
Chart (obsolete as of Q1 2013)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Ales
Top achievements
Rank 1
Ales asked on 05 Dec 2011, 10:44 AM
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 values...is not possible scrool to another.

Thanks for your help

2 Answers, 1 is accepted

Sort by
0
Ves
Telerik team
answered on 07 Dec 2011, 02:21 PM
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,
Ves
the Telerik team

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

0
David
Top achievements
Rank 1
answered on 15 Feb 2012, 10:07 PM
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...
Tags
Chart (obsolete as of Q1 2013)
Asked by
Ales
Top achievements
Rank 1
Answers by
Ves
Telerik team
David
Top achievements
Rank 1
Share this question
or