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 where you can earn rep for your questions!


How to scale axes with different scale factor using pinch zoom?
For example, scale x axis only or scale x axis greater then y axis.

latest available for download
  • You must to post comments

Hi Dmitry,

If you need to disable pinch zoom in X or Y direction then you can set XyDirection for PinchZoomModifier.
So if you need to pinch only x axis you just need to use code like this:


Regarding the second part of your question – our default PinchZoomModifier implementation uses Android’s ScaleGestureDetector which doesn’t provide seperate scale factor for X and Y direction so for now it isn’t possible to pinch X and Y axes with different scale factors but it is possible to create to custom PinchZoomModifier and ajust scale factors if it is needed.

 public class CustomPinchZoomModifier extends PinchZoomModifier {

     * Performs a zoom around the passed in point by the specified X and Y factor
     * @param point  The mouse point.
     * @param xValue The x zoom factor.
     * @param yValue The y zoom factor.
    protected void performZoom(PointF point, double xValue, double yValue) {
        super.performZoom(point, xValue * 2, yValue); // double scale factor in X direction

Hope this will help you! If you have other questions please feel free to ask.

Best regards,

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.