How to make disable to show zoom pane in AChartEng

2019-02-18 14:24发布

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条回答
在下西门庆
2楼-- · 2019-02-18 14:50

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.

查看更多
登录 后发表回答