A discussion forum for JFreeChart (a 2D chart library for the Java platform).
-
Christelle
- Posts: 6
- Joined: Tue Mar 28, 2006 10:45 am
Post
by Christelle » Mon May 22, 2006 5:27 pm
Can I remove a serie that is not visible?
I set a serie invisible (renderer.setSeriesVisible(i,Boolean.FALSE,true);)
and
after that I do removeSerie(i). But I don't work fine.
-
dhchou
- Posts: 138
- Joined: Tue Jul 05, 2005 11:01 pm
Post
by dhchou » Wed May 24, 2006 8:11 pm
You need to get the dataset from your plot instance. Then apply the removeSeries method to your dataset.
Daniel