}
NumberAxis xAxis = new NumberAxis("Time millis spend");
xAxis.setNumberFormatOverride(new MillisecondsSpendNumberFormat());
NumberAxis yAxis = new NumberAxis("Score");
yAxis.setAutoRangeIncludesZero(false);
XYItemRenderer renderer = new XYStepRenderer();
XYPlot plot = new XYPlot(seriesCollection, xAxis, yAxis, renderer);
plot.setOrientation(PlotOrientation.VERTICAL);
JFreeChart chart = new JFreeChart(baseName + " best score statistic",
JFreeChart.DEFAULT_TITLE_FONT, plot, true);
BufferedImage chartImage = chart.createBufferedImage(1024, 768);