hi everybody,
i was just wondering the way JfreeChart export chartPanel to SVG.
Does it export a SVG containing a PNG, or a real SVG file using xml???
thanks for your answer
bonododo
ChartPanel -> SVG
-
- Posts: 15
- Joined: Wed Jun 02, 2004 10:26 pm
Re: ChartPanel -> SVG
JFreeChart itself doesn't do the outputing to XML, but it allows you to use other APIs in conjunction with JFreeChart to export real SVG/XML files. Look at the Batik API. It provides an implementation of java.awt.Graphics2D which will output XML when you draw stuff to it. So, if you pass their Graphics2D into the ChartPanel's paint() method, it will draw the chart in SVG/XML format. There are examples on the website and whatnot.bonododo wrote: Does it export a SVG containing a PNG, or a real SVG file using xml???
Kenny