I also noticed that after invoking series.setPoints(Point[]) in this way (when it is called second or later time), series.getPoints() returns an empty array.
Hi, I'm, coming back to this issue, as it seems that in another plot I do need the update() method. I set points as before (series.setPoints(Point [])) and would like to additionally change the series name - which should be updated in the legend. Without the update() method, the legend displays old series name, and with update(), the plot itself doesn't update...
It seems that without the update() method it works. Thanks,
It seems that without the update() method it works. Thanks, Joanna
Sorry for the late reply, but I haven't noticed your answer until today. Taking the relevant part from my code, it looks like the example below: This works: Series histogramSeries = this.getSeries(histogramSeriesID); for (Point p : histogramSeries.getPoints()) { histogramSeries.removePoint(p, false, false); } for (Point p : points) { histogramSeries.addPoint(p, false, false, false); } histogramSeries.update(histogramSeries); This doesn't work (works only once): Series histogramSeries = this.getSeries(histogramSeriesID);...
Sorry for the late reply, but I haven't noticed your answer until today. Taking the relevant part from my code, it looks like the example below: This works: Series histogramSeries = this.getSeries(histogramSeriesID); for (Point p : histogramSeries.getPoints()) { histogramSeries.removePoint(p, false, false); } for (Point p : points) { histogramSeries.addPoint(p, false, false, false); } histogramSeries.update(histogramSeries); This doesn't work (works only once): Series histogramSeries = this.getSeries(histogramSeriesID);...
I use a chart with one series which I need to update with different points on user's...
I noticed that the API doesn't support passing a null value as categories parameter...