3D Pie Chart not working with 9.3

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

3D Pie Chart not working with 9.3

Post by Michael Jacobs » Wed Sep 11, 2002 9:21 pm

After downloading and installing the latest jars (9.3 and 7.0), the 3d Pie Chart is no longer working. I save to a .jpg and it saves it to a 0 byte file. With 9.2 and 6.4, everything worked fine. Has anyone seen this behavior or come up with a fix for the problem?

Michael Jacobs

Michael Jacobs

Re: 3D Pie Chart not working with 9.3

Post by Michael Jacobs » Wed Sep 11, 2002 10:17 pm

It appears the later version of the Pie3dPlot is not checking for null when it encounters a null arc (0 value). The 9.2 version is:

if (arc == null || arc.getAngleStart() + arc.getAngleExtent() < 180)
continue;

Version 9.3 does not have any such line, so it is encountering a null pointer because of it.

Michael

David Gilbert

Re: 3D Pie Chart not working with 9.3

Post by David Gilbert » Thu Sep 12, 2002 9:22 am

Hi Michael,

Thanks for the report. I made some changes to this class for 0.9.3 to get it to use the start angle and direction, but it looks like I broke it in the process. I'll fix it...

Regards,

DG.

Michael Jacobs

Re: 3D Pie Chart not working with 9.3

Post by Michael Jacobs » Thu Sep 12, 2002 5:00 pm

It appears to be a simple fix. I added a single line checking for null similar to the way 9.2 did it and all was well.

Locked