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

Zooming and Scrolling

1 Answer 75 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.
Walter Haas
Top achievements
Rank 2
Walter Haas asked on 18 Jan 2009, 08:44 AM
Hi guys,

Disclaimer: I'm new to the Telerik forums but I have done my due dilligence and gone through the RadChart tutorials and Help files. Still this seems like something obvious so I appologise if I just haven't seen the setting.

My question is how do I get Scrolling and Zooming working on WinForms RadChart like it does on the ASP.NET AJAX RadChart (http://www.telerik.com/help/aspnet-ajax/featureszoomscroll.html)

From reading the forums it appears that this is not possible specifically the threads:
http://www.telerik.com/community/forums/winforms/chart/zooming-on-y-axis-and-vertical-line.aspx
http://www.telerik.com/community/forums/winforms/chart/dynamically-change-the-step-min-max-value.aspx

If it is not possible then is there some code I can use to get this working? I would like to display a semi transparent region between the user's mouse down and current mouse position. Then after the mouse up event I would like the graph to be zoomed to the selected region.

I tried implementing this but ran into the following problems:

1. OnMouseDown = I couldn't figure out how to translate the current mouse (X,Y) position into the current point on the PlotArea (i.e. you clicked on X Axis = 50, Y Axis = 1000).
2. I could not figure out how to draw a transparent (dynamically resized) rectangle over the top of my graph elements. I looked at using CustomFigures but couldn't figure out how to dynamically change the points.

Any help would be greatly appreciated.

1 Answer, 1 is accepted

Sort by
0
Dwight
Telerik team
answered on 19 Jan 2009, 10:08 AM
Hello Walter,

I confirm that Zooming and scrolling is currently not available in RadChart for WinForms. There is, however, a KB article demonstrating a way to implement such behavior on your own. Please, take a look at
http://www.telerik.com/community/code-library/winforms/chart/zooming-scrolling-in-radchart.aspx

You can find more information and resources at http://www.telerik.com/products/winforms/resources.aspx

Should you have further questions, do not hesitate to write us back.

Best regards,
Evtim
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Chart (obsolete as of Q1 2013)
Asked by
Walter Haas
Top achievements
Rank 2
Answers by
Dwight
Telerik team
Share this question
or