I do not know if someone else contributed this, but I thought it would be interesting to share it with those interested in generating an SVG format, based on batik, from the charts:
...
import org.apache.batik.svggen.SVGGraphics2D;
import org.apache.batik.dom.GenericDOMImplementation;
import org.w3c.dom.Document;
import org.w3c.dom.DOMImplementation;
...
private JFreeChart myChart;
//your code
DOMImplementation domImpl = GenericDOMImplementation.getDOMImplementation();
Document document = domImpl.createDocument (null, "svg", null);
SVGGraphics2D svgGenerator = new SVGGraphics2D(document);
myChart.draw(svgGenerator, new java.awt.geom.Rectangle2D.Double(0, 0, 800, 500));
boolean useCSS = true;
Writer outsvg = new OutputStreamWriter(new FileOutputStream("chart.svg"), "UTF-8");
svgGenerator.stream(outsvg, useCSS);
...
cheers

Akmal