Pinch zoom on single axis

Is it possible to enable pinch zooming, but where it only zooms on the x-axis, but not the y-axis?

The chart is cartesian, and I have tried setting the zoomFactor of the y-axis to 0, which crashed the app. And then to a very small number (aka 0.0001) but this didn't seem to have any effect. it still zoomed in on both axes

2 Replies

SM Srihari Muthukaruppan Syncfusion Team February 26, 2020 10:33 AM UTC

Hi Luca, 

We have analyzed your query. From that, we would like to let you know that we can achieve your requirement by setting “mode” property as X in the zoomsettings of the chart. Based on your requirement we have prepared a sample for your reference. Please find the below sample, code snippet and UG link. 

 
Code Snippet:   
     
     // add additional code here   
        zoomSettings: { 
            enablePinchZooming: true, 
            mode: 'X', 
            enableScrollbar: true 
        },                               
 // add additional code here   
  
Screenshot: 
 
 
Let us know if you have any concerns. 

Regards, 
Srihari M 



DG Durga Gopalakrishnan Syncfusion Team June 22, 2020 06:07 AM UTC

Hi Miles, 

Most welcome. Kindly get in touch with us, if you need any further assistance. We are always happy in assisting you.  

Regards, 
Durga G 


Loader.
Up arrow icon