SVG « Development « JFreeChart Q&A





1. PreserveAspectRatio In SVG Generated From Chart    jfree.org

Code: Select all DOMImplementation domImpl = GenericDOMImplementation.getDOMImplementation(); Document document = domImpl.createDocument(null, "svg", null); Attr attr = document.createAttribute("preserveAspectRatio"); attr.setNodeValue("xMidYMid meet"); document.getChildNodes().item(0).getAttributes().setNamedItem(attr); ...

2. Using SVG, HTML and FOP    jfree.org

Hi All My objective is to show tabular data as well as grahical data in a single HTML file and later convert it into PDF. I am able to create a SVG file using batik and JFreeChart but I am not able to render it into an html having both text and the chart. Does anyone have a sample code for ...

3. SVG demo doesn't look too good    jfree.org

4. JFreeChart + Batik = SVG    jfree.org

5. JFreeChart + Batik = SVG    jfree.org

JFreeChart + Batik = SVG by d_din Fri Jun 23, 2006 5:43 am I am using * SVGExportDemo.java shipped with JFreChart . I am surprised that they never tested this program. The PIE chart is distorted. I have seeen many posts here related to this. Can somebody reply if there is a workaround for this. My projects gonna be in ...

7. Problems with TexturePaint when drawing chart to SVG    jfree.org

I'm drawing a chart to an SVG that I'm sending into FOP. Everything works fine until I start using TexturePaint (either for background or for bar paint). If I create a BufferedImage to look at, everything works fine, but when I draw the chart into an SVG, I get following error when trying to use that SVG: The prefix "xlink" for ...

8. problem exporting chart to SVG    jfree.org

problem exporting chart to SVG by q25 Sun Apr 13, 2008 2:53 am I'm trying to learn to export a chart to SVG, so followed the tutorial on the Developer Guide and tried to run the code provided but hit an error during run-time.. even though I followed all the steps from the guide and copied the code.. here's the ...

9. SVG - Action with javascript    jfree.org

Hi, I use JFreeChart (and batik) for generate a SVG, that I include into a html page. I need to use javascript for hide a serie, but my problem is the id of SVG'elements, who are not really useable. Has anyone a method for overwrite this id with JFreeChart objects ? Thanks for any help ! Sbastien





10. Support for SVG?    jfree.org

We're attempting to use JFreeChart with Batik, and running into problems displaying in Firefox. Is anyone displaying JFreeChart/Batik SVG in Firefox successfully? We get a white background, and that's it. I will try to post some code tomorrow. It works fine in IE with Adobe SVG Viewer. We tried displaying in some of the Batik tools as well (batik.jar, batik-slideshow.jar) and ...

11. Runtime error while exporting to SVG    jfree.org

Runtime error while exporting to SVG by slimprize Mon Feb 14, 2011 6:09 pm Hi all, I have written a demo application to export a chart to SVG. When I run the program, I get the following error. Exception in thread "main" java.lang.NoClassDefFoundError: org/w3c/dom/ElementTraversal I am including my code at the end of this message. What am I missing? The ...

12. JFreeChart and SVG    jfree.org

Hi, I am returning an SVG DOM from my servlet. It works fine, even modifying the SVG DOM to add extra SVG onload functionality,etc.. My questions are: 1. How do I disable the SVG clippath objects that are being generated by Batik? 2. Is it possible to give the java drawing commands a unique ID that will propogate thru Batik to ...