Disable pinch zoom in MPAndroidChart library

Hari picture Hari · Jul 22, 2016 · Viewed 7.8k times · Source

I want to disable pinch zoom at barchart in MPAndroidChart library how i can do that.

library.barchart.setpinzoomenable(false); 

also not working.

Answer

Sathish Kumar J picture Sathish Kumar J · Jul 22, 2016

Try this,

Disable all zooming:

chart.setScaleEnabled(false);

More info refer here