Stacked Bar Chart with offset for a specific Stack

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
lupe2
Posts: 2
Joined: Mon Mar 21, 2011 12:58 pm
antibot: No, of course not.

Stacked Bar Chart with offset for a specific Stack

Post by lupe2 » Mon Mar 21, 2011 1:38 pm

Hello,

I've got a question about a Stacked Bar Chart with an offset in a specific stack.
I would have something like the picture below shows. But the white offset of 1stDay and 2ndDay should not be visible.

Image

I have seen the Waterfall chart, but i would like to have the ability to stack items. Also the ordination of the watherfall chart was in the wrong direction.

Is this behavior feasible?

Best regards
Ludwig

paradoxoff
Posts: 1634
Joined: Sat Feb 17, 2007 1:51 pm

Re: Stacked Bar Chart with offset for a specific Stack

Post by paradoxoff » Tue Mar 22, 2011 10:18 pm

You could set a transparent color as series paint (such as new Color(255, 255, 255, 255)) and also as series outline paint and set the series invisible in the legend (renderer.setSeriesVisibleInLegend(int, boolean))

lupe2
Posts: 2
Joined: Mon Mar 21, 2011 12:58 pm
antibot: No, of course not.

Re: Stacked Bar Chart with offset for a specific Stack

Post by lupe2 » Tue Mar 29, 2011 9:22 am

Thank you paradoxoff,

This did the trick.
To avoid any confusion for other people it must be new Color(255, 255, 255, 0).

Swathi Satheesan
Posts: 1
Joined: Mon Dec 22, 2014 5:52 am
antibot: No, of course not.

Re: Stacked Bar Chart with offset for a specific Stack

Post by Swathi Satheesan » Mon Dec 22, 2014 8:09 am

Hello...I am in the task of creating a waterfall model chart..Can anyone please tell if a stacked waterfall chart model is available..or how to cook up such a chart in jfree

Locked