colors.push(SERIE2_COLOR);
colors.push(SERIE3_COLOR);
}
protected BufferedImage getChartImage() throws IOException {
CombinedDomainXYPlot combinedPlot = new CombinedDomainXYPlot();
combinedPlot.setGap(10);
combinedPlot.setOrientation(PlotOrientation.VERTICAL);
DateAxis dateAxis = new DateAxis();
combinedPlot.setDomainAxis(dateAxis);
dateAxis.setTickLabelPaint(BASE_COLOR);
for(String legend: legends) {
CombinedHistoryPlot plot = plotsPerLegend.get(legend);
Double min = minsPerPlotLegend.get(plot.metricName);
Double max = maxsPerPlotLegend.get(plot.metricName);
plot.configureRangeAxisForGivenType(min, max);
combinedPlot.add(plot.getPlot());
}
JFreeChart chart = new JFreeChart(null, TextTitle.DEFAULT_FONT, combinedPlot, true);
configureChart(chart, true);
return super.getBufferedImage(chart);