wangyao5 / achartengine

Automatically exported from code.google.com/p/achartengine
0 stars 0 forks source link

XYMultipleSeriesRenderer.setPanEnabled(false) doesn't work #123

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Problem may be reproduced in AChartEngineDemo, for example. 
1. Edit class AverageTemperatureChart: add code renderer.setPanEnabled(false) 
after renderer.setZoomButtonsVisible(true) for example.
2. Run program and select appropriate chart. Graphs may be panned with limits 
setPanLimits(xx, xx, yy, yy).

Expected behaviour:
graph can't be panned (moved).

version 0.7

Original issue reported on code.google.com by anton.de...@gmail.com on 23 Aug 2011 at 11:42

GoogleCodeExporter commented 9 years ago
You can use setPanEnabled(false,false) to get the desired effect. Same holds 
true for setZoomEnabled

@Author
To fix the bug you can call setPanEnabled(boolean x, boolean y) in 
setPanEnabled(boolean). But i guess you could figure this out on your own ;-)

Original comment by gerhard....@gmail.com on 27 Sep 2011 at 11:37

GoogleCodeExporter commented 9 years ago
Just use renderer.setPanEnabled(false, false); for XYCharts.
renderer.setPanEnabled(false) is for RoundCharts and 
renderer.setPanEnabled(false, false); is for XYCharts.

Original comment by dandrome...@gmail.com on 26 Oct 2011 at 4:56