tags:

views:

34

answers:

1

As in this mockup:

Layered chart

I know it is possible to have charts display next to each other using org.jfree.chart.plot.CombinedDomainXYPlot, but is it possible to have them overlaid, possibly using different Y axes (one for the stacked bars to the left of the chart, and one for the line chart shown to the right of the chart)?

+1  A: 

Yes, the chart entitled DualAxisDemo1 is an example. In addition to a second data set and renderer, you need a second axis, as discussed in this question & answer.

trashgod
Awesome, thanks.
Alessandro Vernet