null);
// Create an instance of the SVG Generator
SVGGraphics2D svgGenerator = new SVGGraphics2D(document);
// Ask the chart to render into the SVG Graphics2D implementation
Size size = config.getSize();
int zoomLevel = size.getZoomLevel() > 0 ? size.getZoomLevel() : 1;
int viewboxWidth = size.getWidth() / zoomLevel;
int viewboxHeight = size.getHeight() / zoomLevel;
int chartWidth = viewboxWidth - (60 / zoomLevel);
int chartHeight = viewboxHeight - (28 / zoomLevel);
chart.draw(svgGenerator, new Rectangle2D.Double(10, 10, chartWidth,
chartHeight), null);