Hi,
We need to provide panning mode when user cannot zoom, but can only pan the chart. Also, while user is panning the chart yaxis must sync automatically.
I have basically 2 questions:
- Is there a way to disable zooming on the chart, so that mouse wheel either pans or leaves chart intact?
- Is there a way to update the chart sync the YAxisrange while panning automatically?
Thank you,
Alex
Hello Alex,
I am very glad that the approach that I have suggested helped solving your issues. Please let me know if you need any further assistance on the matter.
Sincerely,
Krasimir
Developer Support Engineer
Infragistics
www.infragistics.com/support
Kazimir,
It is clear now how to deal with both issues. Thank you for your help.
-Alex
Thank you for the clarification. I have modified the sample application that I have sent you with my previous reply in order to change the range of the Y axis, while panning the XamDataChart. In order to do that I have get the objects that corresponds to the start and end data points that are visible and set the MinimumValue and MaximumValue to their corresponding values.
Please let me know if you need any further assistance on the matter.
Hi Krasimir,
Thank you for the answer. It is clear from the sample how to deal with first question (mouse wheel). Could you please suggest whether XamDataChart provides auto sync of Y axis on panning?
Scenario:
I have been reading though your post and I have created a sample application for you which demonstrates an approach for not allowing the XamDataChart to be zoomed using the Mouse Wheel. In order to do that I have handled the XamDataChart’s PreviewMouseWheel and WindowRectChanged events. Also I have set the WindowsResponse to Imidiate, PanModifier to Alt and DefaultInteraction to DragZoom. By doing so you can zoom the XamDataChart, by dragging and when pressing the Alt key and dragging, you can pan the XamDataChart and the axes values are changed immediately.