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!

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