Pre loader

How to limit the multiplier of enlargement and reduction when enlarging and reducing

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

Closed
0
0

How to limit the multiplier of enlargement and reduction when enlarging and reducing

Version
2.0.0.1884
  • You must to post comments
0
0

Hi Huang.

I’m not sure that I understand what you mean by limiting the multiplier of enlargement and reduction.

If you want to adjust scale factor of PinchZoomModifier you can use ScaleFactor property ( by default it has 2f value ). You can reduce it to decrease zoom speed and vice versa:

sciChartBuilder.newModifierGroup()
               .withPinchZoomModifier().withScaleFactor(1.5f).build()
               .build();

If you want to restrict zoom on some axis then you can use one of properties provided by axis such as MinimalZoomConstrain, MaximumZoomConstrain or VisibleRangeLimit:

    xAxis.setMinimalZoomConstrain(0.001d);
    xAxis.setMaximumZoomConstrain(1000d);
    xAxis.setVisibleRangeLimit(new DoubleRange(0d, 10000d));

Hope this will help you!

Best regards,
Yura

  • You must to post comments
Showing 1 result

Try SciChart Today

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

Start TrialCase Studies