CategoryPlot plot = new CategoryPlot(dataset, xAxis, yAxis,
renderer);
plot.setOrientation(PlotOrientation.VERTICAL);
JFreeChart chart = new JFreeChart("Time spend summary (lower time is better)", JFreeChart.DEFAULT_TITLE_FONT,
plot, true);
BufferedImage chartImage = chart.createBufferedImage(1024, 768);
File chartSummaryFile = new File(statisticDirectory, "timeSpendSummary.png");
OutputStream out = null;
try {
out = new FileOutputStream(chartSummaryFile);
ImageIO.write(chartImage, "png", out);