AChartEngine table will lose auto-follow after first touch

I am currently using the AChartEngine library to dynamically output my sensor data. It works great, and when I get new data, the chart scrolls and updates the values ​​of the Y axis correctly. The problem is that when I touch the chart to manually scale, move, or something else: the chart loses its “automatic trace”, and the “center chart” button in the zoom controls does not fully center the whole chart (but it focuses to the "old data", until my first touch).

How can i decide?

+4
source share
1 answer

Once you change the visible area manually, it no longer updates it manually. You can probably turn off the zoom and pan if you want to keep the update function.

renderer.setZoomEnabled(false, false); renderer.setPanEnabled(false, false); 
+4
source

All Articles