SetSeriesVisible not working for BarRenderer/BarRenderer3D

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Krac
Posts: 17
Joined: Thu Dec 07, 2006 2:26 pm
Location: Baia Mare, Romania

SetSeriesVisible not working for BarRenderer/BarRenderer3D

Post by Krac » Fri Jan 18, 2008 1:11 pm

Hello, everyone.

Is there any workout for SetSeriesVisible for the mentioned renderers (Bar&Bar3D)?

I use
setSeriesVisible(series, BooleanUtilities.valueOf(b));
in order to make the desired series apper/disappear, but without any effect.

This works though for LineAndShapeRenderer.

Any directions would be highly appreciated.

TIA, all the best

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Post by david.gilbert » Fri Jan 18, 2008 1:20 pm

I think this didn't get implemented yet, because it adds the complication of redistributing the remaining bars across the category space. It needs doing though...I've just been lazy!
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

Krac
Posts: 17
Joined: Thu Dec 07, 2006 2:26 pm
Location: Baia Mare, Romania

Post by Krac » Fri Jan 18, 2008 1:32 pm

Dave, what if the remaining space isn't redistributed? Maybe this would be a simpler workout.

The same works for LineAndShapeRenderer, WITHOUT redistributing the remaining empty space!

Krac
Posts: 17
Joined: Thu Dec 07, 2006 2:26 pm
Location: Baia Mare, Romania

Post by Krac » Fri Jan 18, 2008 1:43 pm

I've found a workout on this subject -unfortunatelly it is for StackedBarRenderer3D :cry:- at the following address:

http://sourceforge.net/tracker/index.ph ... tid=115494

I wonder if that can help for BarRenderer & BarRenderer3D.

Locked