Pie3DPlot

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

Pie3DPlot

Post by Cláudio Sampaio (Patola) » Wed Nov 27, 2002 2:45 pm

Hi,

There is an imperfection on Pie3DPlot. When you plot a 3D Pie Chart,
the oval lines of the bottom go on for a bit before getting hidden by the
upper side. This problem gets more visible when you have pie slices near
the extremes or when you rise the Depth Factor.

Is this planned to be fixed? I would help fixing it if I had more time and
knew awt. =)

Cláudio Sampaio (Patola)

Re: Pie3DPlot

Post by Cláudio Sampaio (Patola) » Wed Nov 27, 2002 3:33 pm

I got the CVS code and it doesn't solve the problem. Instead, it looks like it introduced a new bug: the very same code I was running with 0.9.4 doesn't work the same way. This code sets some colors for the pie, like this:

...
static Paint [] cores = { new Color (156,153,255),
new Color (148,52,98),
new Color (255,255,197),
new Color (205,255,255),
new Color (106,0,106) };
...

for (ii=0; ii<numberOfColors; ii++) {
plot.setSeriesPaint(ii,cores[ii%numberOfColors]);
}
...
It doesn't work now. JFreeChart's chosen colors appear instead of mine.

Dave Gilbert

Re: Pie3DPlot

Post by Dave Gilbert » Wed Nov 27, 2002 3:47 pm

Thanks for the report. I can see the problem by running Pie3DChartDemo2 after commenting out the line:

plot.setForegroundAlpha(0.60f);

I should be able to get that fixed for 0.9.5.

Regarding the colors, the CVS code is slightly inconsistent at present as I have been working on a new set of lookup tables for the chart colors. I'm trying to make it configurable, but have the default colors work adequately for even the combined charts. 0.9.5 won't be released until this is working...

Regards,

DG

Locked