3D Pie + Servlet: example?

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Cláudio Sampaio (Patola)

3D Pie + Servlet: example?

Post by Cláudio Sampaio (Patola) » Thu Sep 19, 2002 9:12 pm

I am evaluating JFreeChart for use at my company but can't really use it without the manual. But to get the manual I have to make an example of a 3D Pie using servlets with JFreeChart. Could someone please provide me with an example I could use of it? It could be with hardwired sample data, it does not matter. Sorry if I am asking for too much, I've been fighting with JFreeChart for about two days now. If you couldn't provide servlet code, a GIF/PNG/JPEG of a 3D Pie Chart would suffice.

Thanks very much.

Richard Atkinson

Re: 3D Pie + Servlet: example?

Post by Richard Atkinson » Fri Sep 20, 2002 9:33 am

I put together a Pie Chart sample in a WAR file to demonstrate tooltips and drilldown capabilities. It is available for download with the source from http://homepage.ntlworld.com/richard_c_ ... jfreechart

You can change the Pie Chart to be 3D by modifing the following code in the WebHitChart (line 110).

Pie3DPlot plot = new Pie3DPlot(data);
plot.setOutlinePaint(java.awt.Color.white);
plot.setInsets(new Insets(0, 25, 5, 25));

Hope this helps.

Regards,
Richard...

Cláudio Sampaio (Patola)

Re: 3D Pie + Servlet: example?

Post by Cláudio Sampaio (Patola) » Fri Sep 20, 2002 11:17 pm

Thank you VERY VERY much. It solved my problem. Now, going to approve buying the manual... ;)

Locked