public JFreeChart createChartImpl(String title, String xAxisTitle, String yAxisTitle, final Dataset dataset,
PlotOrientation plotOrientation, boolean showLegend, boolean showToolTips, boolean showUrls)
{
CategoryAxis xAxis = new CategoryAxis(xAxisTitle);
ValueAxis yAxis = new NumberAxis(yAxisTitle);
CategoryItemRenderer renderer = new StatisticalBarRenderer();
CategoryPlot plot = new CategoryPlot((StatisticalCategoryDataset) dataset, xAxis, yAxis, renderer);
JFreeChart chart = new JFreeChart(title, new Font("Arial", Font.PLAIN, 10), plot, true);
return chart;