SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and now iOS Charting & Android Chart Components

Welcome to the SciChart Community Forums!

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!

0
0

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 to post comments
0
0

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

  • Andreas Mueller-Bluemlein
    Hi Yuriy,many thanks. ZoomExtentsY was the solution. Works perfect now!Best regards, Robin
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.