I am having some issues enabling zooming.
My expected behavior is :
- Enable Zoom with the Mouse Wheel
- Keep the 0 value position-fixed. (for the YAxis in the middle).
Code: Select all
yAxis.SetRange(-5000, 5000);
yAxis.ZoomingEnabled = true;
yAxis.PanningEnabled = false;
The problem is, that the position it's not fixed, so when I use my mouse wheel the range increase/decrease but the zero-positions changes too.
Please see this example. Range used to be (-5k, 5k) . I placed my mouse on the bottom , and the range got increased (-5k, 11k) but zero was moved.
I think it must be some property but I can't find it.
Thanks,
Andrés