Pre loader

ZoomPanModifier without zoom extents in Y direction

Welcome to the SciChart Forums!

  • Please read our Question Asking Guidelines for how to format a good question
  • Some reputation is required to post answers. Get up-voted to avoid the spam filter!
  • We welcome community answers and upvotes. Every Q&A improves SciChart for everyone

WPF Forums | JavaScript Forums | Android Forums | iOS Forums

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.

Try SciChart Today

Start a trial and discover why we are the choice
of demanding developers worldwide

Start TrialCase Studies