Hi,
i use a ZoomPanModifier so that the user can drag the chart with the right mouse. First, XyDirection was not set, so the user could drag in X and Y direction.
I wanted to change this behaviour so that the modifier works like the RubberBandXyZoomModifier (with ZoomExtentsY = false). That means, only moving the chart in X-Direction, but not Y.
So i set XyDirection of the ZoomPanModifier to “XDirection”. Now, the user can’t scroll in Y. So far so good. But now the chart is autoscaled in Y direction on the first X-Movement, even with AutoRange turned off! Is this a bug? If not, what can i do to prevent this unwanted auto scaling?
Best regards,
Robin
- You must login to post comments
Hi Robin,
There is the ZoomExtentsY property in ZoomPanModifier, it’s set to “True” by default. Seems that it causes autoscaling in the Y direction – try to set it to “False”. Optionally, take a look at the Pan X or Y direction example, there this behavior is demonstrated and you can change it using the checkbox in the top right corner.
Please, let us know if this resolves the issue.
Best regards,
Yuriy
- Yuriy Zadereckiy answered 10 years ago
-
Hi Yuriy, many thanks. ZoomExtentsY was the solution. Works perfect now! Best regards, Robin
- You must login to post comments
Please login first to submit.