Pan and Zoom

4 posts, 0 answers
  1. Dámaso
    Dámaso avatar
    2 posts
    Member since:
    Apr 2013

    Posted 10 Apr 2013 Link to this post

    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?
  2. Ivan Petrov
    Admin
    Ivan Petrov avatar
    701 posts

    Posted 15 Apr 2013 Link to this post

    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.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Dámaso
    Dámaso avatar
    2 posts
    Member since:
    Apr 2013

    Posted 17 Apr 2013 Link to this post

    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
  5. Ivan Petrov
    Admin
    Ivan Petrov avatar
    701 posts

    Posted 19 Apr 2013 Link to this post

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