I have a lot of series . I would like to choose a serie and remove it. But somethimes it not work and it remove another serie.
//seriesdata is a XYSeriesCollection
if( connectionNames.contains(link)){ this.seriesdata.removeSeries(this.seriesdata.getSeries(this.seriesdata.indexOf(link)));
}
thanks,
Problem with removeSeries
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
Are your series names unique within the collection? They need to be.
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader

