@Override
protected JFreeChart createChart() {
JFreeChart chart = ChartFactory.createXYLineChart(null, domainLabel, rangeLabel,
dataset, PlotOrientation.VERTICAL, true, false, false);
DeviationRenderer renderer = new DeviationRenderer();
renderer.setAlpha(0.2f);
chart.getXYPlot().setRenderer(renderer);
CategorizedAxis domainAxis = new CategorizedAxis();
domainAxis.setLabel(domainLabel);
chart.getXYPlot().setDomainAxis(domainAxis);
for (int i = 0; i < chart.getXYPlot().getSeriesCount(); ++i) {
renderer.setSeriesFillPaint(i, DEFAULT_PAINTS[i % DEFAULT_PAINTS.length]);
}
return chart;
}