How to combine bar chart with stacked bar in one plot?

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
tdk
Posts: 19
Joined: Mon Aug 29, 2005 3:17 pm
Location: Germany
Contact:

How to combine bar chart with stacked bar in one plot?

Post by tdk » Mon Feb 05, 2007 11:31 am

Folks'es,

i would like to combine a bar chart and a stacked bar chart in one plot. how can i do this (i only found replies in the forum that it can be done but not how :cry: )

here is what i have:
- one DefaultCategoryDataset
- containing 3 series of data

here is what i would like to see:
- series 1 shown as a bar
- series 2 and 3 shown as a stacked bar

thanx for any help/suggestions/ideas,

thomas

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 Feb 05, 2007 12:38 pm

Take a look at the GroupedStackedBarRenderer class.
David Gilbert
JFreeChart Project Leader

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

tdk
Posts: 19
Joined: Mon Aug 29, 2005 3:17 pm
Location: Germany
Contact:

Post by tdk » Mon Feb 05, 2007 1:37 pm

great, thanx Dave.

thomas

PS: keep up the good work! thanx

Locked