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

Pan and Zoom

3 Answers 240 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Dámaso
Top achievements
Rank 1
Dámaso asked on 10 Apr 2013, 11:39 AM
I'm using the Q1 2013 distribution and I'm having trouble using the pan and zoom functionality. When I zoom in on a radchartview, I can only pan around a small set of values (I'm using a scatterpoint chart). I'm not able to pan the entire chart this way.
I'm trying this with a simple scatterpoint chart created and configured by the Property Builder, with no extra configuration. Is this the expected functionality?
Also, the zooming occurs at a fixed point of the chart, not relative to the mouse. Is it possible to make it work this way (relative to the mouse)? i found this article http://www.telerik.com/community/forums/silverlight/charting-kit/zoom.aspx Is it possible to create a similar project for WinForms?

3 Answers, 1 is accepted

Sort by
0
Ivan Petrov
Telerik team
answered on 15 Apr 2013, 09:48 AM
Hello Dámaso,

Thank you for writing.

The default behavior of RadChartView zoom is to zoom along the horizontal axis. You can control this behavior and change it to zoom along the vertical or both axes though a PanZoomController. Such a controller is automatically added to the chart view controllers collection when you set the SowPanZoom property to true. You can find more information on this matter in our online documentation. 

I have attached a project that uses the same code/logic as the Silverlight example you have referenced and achieves the same result. The zoom is performed relatively to the mouse position.

I hope this will be useful. Should you have further questions, I would be glad to help.

Regards,
Ivan Petrov
the Telerik team
WinForms Q1 2013 boasts PivotGrid, PDF Viewer, Chart enhancements and more. Check out all of the latest highlights.
0
Dámaso
Top achievements
Rank 1
answered on 17 Apr 2013, 07:08 AM
I'm using Visual Studio 2010 and it reports the proejct as incompatible. Could you please repack it in a 2010 version?
Thanks for the help, I'm reviewing the code files to see it they suit the functionality I desire
0
Ivan Petrov
Telerik team
answered on 19 Apr 2013, 01:06 PM
Hi Dámaso,

Thank you for your reply.

Please, find attached the same project built with Visual Studio 2010.

I hope this will be of use. Feel free to write back with further questions.

Kind regards,
Ivan Petrov
the Telerik team
WinForms Q1 2013 boasts PivotGrid, PDF Viewer, Chart enhancements and more. Check out all of the latest highlights.
Tags
ChartView
Asked by
Dámaso
Top achievements
Rank 1
Answers by
Ivan Petrov
Telerik team
Dámaso
Top achievements
Rank 1
Share this question
or