CombinedChart

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Bernd Adam

CombinedChart

Post by Bernd Adam » Fri May 24, 2002 7:07 am

Good morning,

I've studied the PriceVolumeDemo.java file in the download. But I've a question now.
I have i.e. four Datasets. The first three Datasets should be shown in the first Chart (Line-Chart like the CombinedChart c0 in the demo). The fourth Dataset should be show in a second Chart (Bar-Chart like CombinedChart c1 in the demo). Is this possible an how can I realize that.

Many thanks

Bernd

David Gilbert

Re: CombinedChart

Post by David Gilbert » Tue May 28, 2002 5:59 pm

Check the way that datasets are composed in the displayCombinedAndOverlaidChart1() method in the JFreeChartDemo class.

I've done some work for the next release to simplify the way that combined charts work. The revised code allows each subplot to manage it's dataset independently. And axes get set to null when the parent plot's axis should be used. If you want to try it out, check out the code from CVS on SourceForge.

Regards,

DG.

Locked