1

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?

4

1 回答 1

0

我将尝试回答我理解的问题:

  • 您可以通过删除上一个系列中的数据来清除它
  • 您可以使用renderer.setXAxisMin()和控制可见区域renderer.setXAxisMax()
  • 当您希望将光标发送回开头时,您可以创建一个新系列并开始向该系列添加数据
  • 如果不需要,可以通过调用隐藏图例renderer.setShowLegend(false)

调用后更改将显示在屏幕上chartView.repaint()

于 2013-02-02T13:34:42.830 回答