how to prevent the graph from overwriting the previous plot using achartengine

 ̄綄美尐妖づ 提交于 2019-12-13 18:18:45

问题


I have made the plot to repaint the graph from the first once it reaches end. Now my problem is the graph gets overwritten. The previous plot remains as such. So, how should i repaint after clearing the previous plot? And by clearing i should not loose the previous data. It should remain as such when i scroll.Can someone help me with this pls?


回答1:


I will try to answer the questions I understood:

  • You can clear data from the previous series, by removing it
  • You can control the visible area by using renderer.setXAxisMin() and renderer.setXAxisMax()
  • When you want the cursor sent back to the beginning, you can create a new series and start adding data to this series
  • You can hide the legend, if you don't need it by calling renderer.setShowLegend(false)

The changes will be visible on the screen after calling chartView.repaint().



来源:https://stackoverflow.com/questions/14643953/how-to-prevent-the-graph-from-overwriting-the-previous-plot-using-achartengine

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!