I'm using a XYPlot to show a line graph with 1 or more lines in it. I have it combined with a listener pattern so it can receive updates: if so, it removes the lines using a dataset.removeAllSeries()
(dataset is of type XYSeriesCollection
) call, and then adds the new lines using dataset.addSeries(...)
However, a new graph with new lines will have different colors!
So probably the Color renderer continues to distribute new colors.
Is there a possibility to reset the renderer, so it starts out with the first color again?