chart.draw(svgGenerator, new Rectangle2D.Double(0, 0, 600,
400), null);
try {
Writer out = new OutputStreamWriter(
new FileOutputStream(file), "UTF-8");
svgGenerator.stream(out, true);
} catch (UnsupportedEncodingException e1) {
JOptionPane.showMessageDialog(this,
"Unsupported Encoding", "Error",
JOptionPane.ERROR_MESSAGE);
} catch (FileNotFoundException e1) {