svg « PieChart « JFreeChart Q&A





1. How come my piechart is gray when using svg    jfree.org

When I export my piechart as svg format, one of the piecharts displays good colors, but the second piechart, the legend says it's supposed to be red, it colors the whole piechart gray. I tried to change the color of the piechart, and it still displays the gray color. I think there is something wrong with either my svgAsSVG() method or ...

2. pie chart then SVG --> strange appearence    jfree.org

It is hard to say where the problem lies. Try to isolate it by: (1) Saving the chart to PNG format, to make sure that JFreeChart is drawing the chart correctly; (2) View the generated SVG output with a different SVG viewer, to see if it is just a problem with your browser. (3) Try different versions of Batik, to see ...

3. problem rendering piechart as svg    jfree.org

I'm creating a piechart using a piedataset, the data points have a big difference in values. The values being used are {9.0d, 10.0d, 886.0d and 2.0d} This is rendered fine in a chart panel, however when I generate the svg, there is only two distinct colors for the items and they are the wrong colors. Following is the relevant section of ...

4. Problem: Distorted pie chart as SVG, fine as PNG    jfree.org

I'm rendering both a PNG (for web) and SVG (for a PDF report) of the same JFreeChart instance but the SVG image ends up with the largest piece of the pie distorted. I'd really love to have SVG charts in my PDF reports, but this currently is a show stopper. I looks like Batik is getting it wrong somehow, or is ...