How to prevent a graph from overwriting the previous graph using achartangenin

I made a plot to redraw the graph from the first time it reaches the end. Now my problem is that the graph is being overwritten. The previous plot remains that way. So how do I repaint after clearing the previous plot? And by clearing, I shouldn't lose the previous data. It should stay that way when I scroll. Can anyone help me with this pls?

+1


source to share


1 answer


I will try to answer the questions I understood:

  • You can clear data from a previous series by deleting it.
  • You can control the visible area with renderer.setXAxisMin()

    andrenderer.setXAxisMax()

  • If you want the cursor to be sent back to the beginning, you can create a new series and start adding data to that 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 the call chartView.repaint()

.

0


source







All Articles