SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and now iOS Charting & Android Chart Components
Please use the forums below to ask questions about SciChart. Take a moment to read our Question asking guidelines on how to ask a good question and our support policy. We also have a tag=SciChart on Stackoverflow.com where you can earn rep for your questions!
Please note: SciChart team will only answer questions from customers with active support subscriptions. Expired support questions will be ignored. If your support status shows incorrectly, contact us and we will be glad to help.
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?
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.
Please login first to submit.