问题
I am trying to create chart like below:

While I've almost achieved everything by simply creating a line chart and customizing shape/paint for Renderer, I can't seem to find a way to fill the areas under the series line.
Any clues, how can I do this?
回答1:
You could create your chart with a StackedXYAreaRenderer. Specify AREA_AND_SHAPES
in the constructor and enable outlines. See the ChartFactory
code for createStackedXYAreaChart() as an example.
StackedXYAreaRenderer r = new StackedXYAreaRenderer(XYAreaRenderer.AREA_AND_SHAPES);
r.setOutline(true);
Given a renderer, you can set the outline paint and stroke as desired.
来源:https://stackoverflow.com/questions/31166588/jfreechart-line-chart-with-filled-areas