Combined bar/stacked bar chart

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Reso
Posts: 2
Joined: Fri Sep 16, 2005 4:06 pm

Combined bar/stacked bar chart

Post by Reso » Fri Sep 16, 2005 4:12 pm

I'm trying to find a way to create a chart that has two bars per category. One of the two bars need to be a stacked bar while the other is just a single bar with values on the same axis. DefaultCategoryDataset doesn't seem to support this when using the same category and different series - that just creates more stacks onto a single bar. If someone can simply point me to the correct dataset/chart type to achieve this effect, I think I can figure out the details.

Any advice would be greatly appreciated!

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 » Mon Sep 19, 2005 4:55 pm

You could probably achieve this with the GroupedStackedBarRenderer.
David Gilbert
JFreeChart Project Leader

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

rcdjbp
Posts: 6
Joined: Thu Jul 26, 2007 4:43 pm

Combined + Stacked

Post by rcdjbp » Mon Aug 13, 2007 7:17 pm

Hi Reso,

Did you get this to work? I've been trying to do the same thing without success.

Thanks, Jabe
rcdjbp@yahoo.com

Locked