Hi all,
I have a chart like that,
http://docs.google.com/View?docid=ddw99tpn_57fgmvbs
In some cases I want to make the series unvisible. I have tried with
renderer.setSeriesVisible(new Boolean(false)); and
renderer.setSeriesVisible(0,new Boolean(false)); functions
but I could not do this.
Is there any one who could explain right way?
Regards,
Onder.
How to change visibilty with BarRenderer ?
-
- Posts: 13
- Joined: Mon May 22, 2006 3:01 pm
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
Not all renderers respect the 'seriesVisible' flags yet, and BarRenderer is one of them, so there isn't an easy way to do this yet. The hard way is to remove the series from the dataset entirely (assuming you are using a dataset that supports removing a series - otherwise you could create a whole new dataset and replace the old one), and redraw the chart.
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader


-
- Posts: 17
- Joined: Tue Oct 11, 2005 9:27 pm
setting visiblity
Does StackedXYAreaRenderer2 respect Series visibility flag?
thanks,
vani
thanks,
vani
-
- Posts: 13
- Joined: Mon May 22, 2006 3:01 pm
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
None of the bar renderers or stacked renderers supports this yet. It is a little more difficult to implement for these cases, because hiding one series actually changes the location of other series. I'll take another look at it...
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader

