I am trying to generate a time series with the area underneath filled with color.
Looking at examples of the jfreechart library there is this method:
However the dataset required is a Category dataset, something quite different from the Time Series Dataset that I currently create:
Which methods should I use to fill with color the area underneath the plotted line?
Add the following after you create the a chart (using
XYPlot plot = (XYPlot) chart.getPlot(); plot.setRenderer(new XYAreaRenderer());