How to make disable to show zoom pane in AChartEngine

亡梦爱人 提交于 2019-12-01 06:15:36

问题


Can anyone help me about AChartEngine. Here the first thing I need is not to show zoom icon with the chart and also not to show x,y labels. But I could not find any solution


回答1:


You can use XYMultipleSeriesRenderer methods to enable or disable zooming and pan like this.

renderer.setPanEnabled(false, false);
renderer.setZoomRate(0.2f);
renderer.setZoomEnabled(false, false);

and regarding removing the X, Y labels, I think you cannot remove labels. Workaround is to pass an empty String (i.e ""). For further reference you can download their Documentation, under achartengine-0.6.0-javadocs.zip.



来源:https://stackoverflow.com/questions/6503563/how-to-make-disable-to-show-zoom-pane-in-achartengine

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!