I found a bug in Pie3DPlot.java

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

I found a bug in Pie3DPlot.java

Post by kxun » Thu Oct 17, 2002 11:13 am

When I wrote my own pie chart drawing program, I referenced this file,
but I found an error, I think it is a bug in Pie3DPlot.java Line 600, if you
don't believe, please modify the code and only draw the bottom ellipse,
the back part and the front part, you will agree with me.
I rectify it from A to B as followings:
A: Area side1 = new Area(
new Rectangle2D.Double(arc.getStartPoint().getX(), plotArea.getY(),
plotArea.getX()-arc.getStartPoint().getX(),
plotArea.getHeight()));

B: Area side1 = new Area(
new Rectangle2D.Double(plotArea.getX(), plotArea.getY(),
arc.getStartPoint().getX()-plotArea.getX(),
plotArea.getHeight()));

if you have interest to disscuss with me, please write to me.
Email: <BR>
<a href="mailto:kangx@smartcomm.com.cn">Xun Kang</a> <BR>

Dave Gilbert

Re: I found a bug in Pie3DPlot.java

Post by Dave Gilbert » Thu Oct 17, 2002 5:45 pm

You might be right, I'll have to take a closer look...

Regards,

DG.

Dave Gilbert

Re: I found a bug in Pie3DPlot.java

Post by Dave Gilbert » Fri Oct 18, 2002 3:24 pm

I took a closer look, and you are correct. I've added your fix to the source tree, and also a couple of other similar fixes which show up if you change the orientation of the pie chart to ANTICLOCKWISE.

Thanks for the report...

Regards,

DG.

Locked