combining two charts

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

combining two charts

Post by HS » Wed Mar 13, 2002 8:49 pm

Hello,

I am trying to combine Bar chart and Line chart in one chart to show comparision. These two charts will be overlaid on one another. How can I use JFreeCharts to acheive this?

Thanks
HS

David Gilbert

Re: combining two charts

Post by David Gilbert » Thu Mar 14, 2002 12:02 am

You can't use the combined plots with any of the plots that are based on the CategoryDataset. So you would need to look at combining a VerticalXYBarPlot with a standard XYPlot...I haven't tried it out yet, but in theory it should work.

Regards,

DG.

Locked