SVG

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Silas

SVG

Post by Silas » Thu Feb 14, 2002 9:26 am

I have this code

JFreeChart chart = ChartFactory.createPieChart("Pie Demo",data,true);

//The error is on this method it says this method not found in Jfreechart
//Every thing is well the jar files for batik have been set. My program only stops here.

chart.draw(svgGenerator, new Rectangle2D.Double(0,0,400,300));

David Gilbert

Re: SVG

Post by David Gilbert » Thu Feb 14, 2002 10:33 am

There's been a small change in the API for the draw method to support tooltips, so you need to change the call to:

chart.draw(svgGenerator, new Rectangle2D,Double(0, 0, 400, 300), null);

...and it should work. I'll update the documentation. Thanks for the feedback...

DG.

Locked