multi-bar with a LineXY
multi-bar with a LineXY
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?
Re: multi-bar with a LineXY
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
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