Superpose a linechart on a barchart

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
nricca
Posts: 4
Joined: Wed May 18, 2011 10:07 am
antibot: No, of course not.

Superpose a linechart on a barchart

Post by nricca » Wed May 18, 2011 10:33 am

Hi everyone,

i'm trying to create a chart that represent an annual performance.

The chart must combine a bar serie within a category (2006 to 2011) and superpose a line serie.

http://www.java2s.com/CN/Code/Java/Char ... tDemo2.htm
I start from this example but the problem is that everything work fine when both series has the same number of points defined.

In my case, the bar have one value per serie for each year, and the line have a lot of value for one year.

How can i creat those kind of chart. Is it possible ?

Locked