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()
andrenderer.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()
.