I'm trying to make a CombinedPlot with a HorizontalCategoryAxis and
a VerticalNumberAxis to show bars and lines in the same chart.
I created a LinePlot and a VerticalBarPlot. Then, I created a CombinedChart for each type of plot. When I try to create CombinedPlot from a HorizontalCategoryAxis and VerticalNumberAxis
I get a PlotNotCompatibleException.
I don't know if this is the correct form. Could anyone help me?
CombinedPlot problem!
RE: CombinedPlot problem!
Hi Erica,
I think that it is only the VerticalXYBarPlot that can be combined with other charts, not the bar charts based on CategoryDataset. I'm still figuring out the combination charts myself though...
Regards,
DG.
I think that it is only the VerticalXYBarPlot that can be combined with other charts, not the bar charts based on CategoryDataset. I'm still figuring out the combination charts myself though...
Regards,
DG.
RE: CombinedPlot problem!
Hi Erica,
CombinedPlot only accepts HorizontalNumberAxis or HorizontalDateAxis (or sub-classes) as horizontal axes. That is why you are getting the PlotNotCompatibleException.
I believe a new class would be necessary to combine Category plots as you are trying to do, and this could be a major effort. I have not worked with Category plots in JFreeChart, that is why I didn't work on these for the combined sub-project.
Regards,
Bill
CombinedPlot only accepts HorizontalNumberAxis or HorizontalDateAxis (or sub-classes) as horizontal axes. That is why you are getting the PlotNotCompatibleException.
I believe a new class would be necessary to combine Category plots as you are trying to do, and this could be a major effort. I have not worked with Category plots in JFreeChart, that is why I didn't work on these for the combined sub-project.
Regards,
Bill