Is it possible to have an XY plot (eg. sine curve) overlaid with a vertical bar chart? The plot is a smooth curve, but the bars lie on discrete x-axis values.
Thanks.
Overlaid XY Plot with Bar Chart
Re: Overlaid XY Plot with Bar Chart
You can use the VerticalXYBarPlot to do a simple bar chart and overlay it with a regular XYPlot showing a sine curve (actually, just an approximation of a sine curve, since JFreeChart doesn't really plot functions). The VerticalXYBarPlot does not have the same range of features as the regular bar plots though.
Regards,
DG
Regards,
DG
Re: Overlaid XY Plot with Bar Chart
Hi David,
I didn't find any class called VerticalXYBarPlot.
Regards,
Yong Sing
I didn't find any class called VerticalXYBarPlot.
Regards,
Yong Sing
Re: Overlaid XY Plot with Bar Chart
Sorry, I meant to say VerticalXYBarRenderer, you plug it in to a regular XYPlot, making sure that your dataset is an instance of IntervalXYDataset.
Regards,
DG.
Regards,
DG.