multi-bar with a LineXY

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

multi-bar with a LineXY

Post by Dale » Mon Jan 13, 2003 4:33 am

I need a chart that has multiple vertical bars and a line chart in the same chart. Is this possible? If so, what's the best way to do it?

David Gilbert

Re: multi-bar with a LineXY

Post by David Gilbert » Mon Jan 13, 2003 4:25 pm

Yes, it is possible. How? It depends. There are more bar-chart features with charts based on the CategoryDataset interface, but if your data is time-based, there is only date axis support for charts based on the XYDataset interface.

You need to look at the OverlaidXYPlot class and the VerticalOverlaidCategoryPlot class...the former is in a better state than the latter, but bar chart support on XYPlots is limited (you would have to extend it).

Regards,

Dave Gilbert

Locked