SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and iOS Chart & Android Chart Components
Hello,
I am evaluating SciChart (for info : v 2.3) for integration into a WPF application. For the application is important that the user can interact with the chart.
So I have been trying to get that working with SciChart : with the MouseWheelZoomModifier we can use the mouse wheel to zoom the chart and with ZoomPanModifier we can use the left-mouse button to pan the chart. Excellent !
But then we would like to have the same behavior on the axes : Mouse wheel to zoom an axis and left-mouse button to move it up and down. Until now I found only the XAxisDragModifier to make an axis interactive but that has a quite different behavior.
So my question is : How can I get the same zooming and panning behavior on the axes ?
thanks in advance for any help,
Stefaan
Norway
Hi Stefaan,
I believe that MouseWheelModifier has zoom and pan in X or Y direction when you hold down SHIFT or CTRL while mouse-wheeling. Can you try that?
I believe there are some more properties on MouseWheelZoomModifier which can be adjusted to change its behaviour.
/// <summary> /// Gets or sets the <see cref="ActionType"/> to perform on mouse-wheel interaction /// </summary> public ActionType ActionType { get { return (ActionType)GetValue(ActionTypeProperty); } set { SetValue(ActionTypeProperty, value); } }
where ActionType has values of Zoom, Pan. Try playing with that. If you have to you can also dynamically switch ActionType if the user is holding down CTRL.
Alternatively, you can create your own modifier! Our framework allows you to extend or create your own chart interations. Take a look at this forum post for inspiration
http://http://www.scichart.com/questions/question/different-zooming-on-axes/
Andrew
Please login first to submit.