7

AChart engine limit pan to valid data points

view full story
linux-howto

http://stackoverflow.com – I have an Android application that is using Achart to create a 2 graphs. Both a line graph and a bar graph. These graph will be populated with an extra data point each time the application is run. So after 10 runs there will be enough data to cover the visible x-axis. What I want is for after the 11th+ use, to be able to pan the graph, so that the user can see historical data (back to the first data point). I have set renderer.setPanEnabled(true, false); renderer.setZoomEnabled(false, false); renderer.setYAxisMin(0); renderer.setXAxisMin(0.5); renderer.setXAxisMax(10.5) (HowTos)