http://www.hardcoded.net/Chartsvg.
It is an open source project that combines XSL technology and SVG technology to generate charts, although it is very simple, but indicates the direction of SVG chart production.
The pie chart needs to support the analyzer of XSLT1.1 to handle it, you can use JDK1.5.
DOM tree Dynamically creates all possible chart style in XSL style sheets, XSL style sheets
And specifically to each chart, you need to correspond to a Java class to generate a DOM tree.