Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

turn off zoom achart engine

AchartEngine have two ways to zoom chart. First is by the "button" and second by the "fingers". Is there a way to disable one of them? I don't want to zoom by "fingers". Is it possible?

like image 264
Dr Glass Avatar asked May 29 '12 11:05

Dr Glass


1 Answers

you can use XYMultipleSeriesRenderer methods to enable or disable zooming

mRenderer.setPanEnabled(false, false);
mRenderer.setZoomEnabled(false, false);
renderer.setZoomEnabled(false, false);

also see this

http://www.achartengine.org/content/javadoc/org/achartengine/tools/class-use/ZoomListener.html#org.achartengine

like image 95
Zaz Gmy Avatar answered Nov 15 '22 07:11

Zaz Gmy



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!