JFreechart, line chart with filled areas
1 answer
You can create your chart with StackedXYAreaRenderer
. Set AREA_AND_SHAPES
in constructor and include paths. For an example see Code ChartFactory
for createStackedXYAreaChart()
.
StackedXYAreaRenderer r = new StackedXYAreaRenderer(XYAreaRenderer.AREA_AND_SHAPES);
r.setOutline(true);
For the renderer, you can adjust the paint and stroke of the outline as desired.
+3
source to share