Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
65
XamDataChart MouseWheel
posted

Hello,

I want to overwrite the default  zooming behaviour for XamDataChart in a WPF application. I want the zoom to be only on the Y axis and the  chart to be always centered; the base line ( zero line) to be in the middle of the graph.

The code below works inside a button click event function, but I want to make it work for the mouse wheel.

dataChart.WindowScaleVertical = 0.5;

dataChart.WindowPositionVertical = (1.0 - dataChart.WindowScaleVertical) / 2.0;


Thanks,

Radu.

Parents Reply Children