Overlaid plot vs Dual axis

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
bubblekou
Posts: 4
Joined: Tue Aug 19, 2003 2:35 am
Contact:

Overlaid plot vs Dual axis

Post by bubblekou » Tue Aug 19, 2003 3:00 am

The new jfreechart doesn't support overlaid plot anymore. I checked out the demo and found that the overlaid demo is just another version of dual axis demo. I don't agree with the announcement that overlaid plot is redundant since the dual axis is supported. Overlaid can support more than two dataset while dual axis is limited. Here is my problem. I have the following regression analysis chart implement with jfreechart 0.9.8.

Image

In the above graph the red small squares are the raw data, the green line is the linear regression, and the two blue lines are the 70% confidence line to the estimation.

I have not figured out how to draw my chart with the new release. Any suggestions?

Thanks a lot
Hongbing

askex2056
Posts: 57
Joined: Tue Aug 05, 2003 3:16 pm
Location: Germany, Munich

Post by askex2056 » Tue Aug 19, 2003 7:30 am

Hi,
have you tried

Code: Select all

void setSecondaryDataset(int index, XYDataset dataset)
          Adds or changes a secondary dataset for the plot.
through wich you can provide multiple datasets?
Regards,

Andreas Schroeder

bubblekou
Posts: 4
Joined: Tue Aug 19, 2003 2:35 am
Contact:

Post by bubblekou » Sat Sep 20, 2003 2:37 am

Thanks for the hint. I figured it out finally. The Plot can have more than one secondary dataset and renderer.

Regards,
Hongbing
askex2056 wrote:Hi,
have you tried

Code: Select all

void setSecondaryDataset(int index, XYDataset dataset)
          Adds or changes a secondary dataset for the plot.
through wich you can provide multiple datasets?

Locked