4

I'm currently using AChartEngine library to dinamically draw my sensor data. It's working fine and when i receive new data the chart scroll and update Y axis values correctly. The problem is when i touch the chart to manually zoom, move or anything else: the chart loses his "auto following" intelligence and also the "center chart" button in the zoom controls does not center correctly entire chart (but it focus on "old data", before my first touch).

How can i solve?

Alvins
  • 867
  • 16
  • 27

1 Answers1

4

Once you change the visible area manually, it no longer updates it manually. You could probably disable zoom and pan if you want to keep the update feature.

renderer.setZoomEnabled(false, false);
renderer.setPanEnabled(false, false);
Dan D.
  • 32,246
  • 5
  • 63
  • 79