JFreeChart: is it possible to combine a stacked bars and line chart combined?
Asked Answered
P

1

6

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)?

Placencia answered 27/9, 2010 at 21:22 Comment(0)
A
6

Yes, the chart entitled DualAxisDemo1, shown among the Multiple Axis Charts, is an example. In addition to a second data set and renderer, you need a second axis, as discussed in this question & answer. This related example combines two renderers; this related example combines two axes.

Attainment answered 28/9, 2010 at 3:36 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.