BarChart barChart = new BarChart( singleDataSet, false, properties, axisProperties, width, height );
BufferedImage bi = barChart.getBufferedImage();
Graphics2D graphics = barChart.getGraphics2D();
// graphics.scale(0.75, 0.75d);
//graphics.
barChart.exportJPG( res.getOutputStream(), 1.0f);
res.getOutputStream().flush();
} catch( Throwable throwable ) { throwable.printStackTrace(); Debug.logError("error in generateChart", module);
}
}