It was a bug, and you weren't doing anything wrong--this will be fixed in the next release
(probably 1.4307). Probably a bit late to matter to you, I realize, but at least it won't happen
to the next person with similar data.
On Wed Feb 16 12:54:50 2005, guest wrote:
Show quoted text> Hi,
> I am seeing an odd behaviour in drawing pie charts using GD::Graph
> 1.43, ( using perl 5.8.6, GD 2.19, gd 2.0.33, libpng 1.2.8, zlib
> 1.1.3).
>
> When drawing 3d pie charts (output in png format), most of the time
> the 3d area is colored the same as the second slice (first value in
> the data array). When the first data value is below a certain
> value, the 3d area remains white. It seems to be related to the
> relative percentage of the 2 slices. (Sometimes I use a 3rd data
> value, and sometimes see the same behaviour).
>
> Specifically, if my data values are like this:
> my @piedata1=(
> ["Run","Not Run" ],
> [ 126, 1177],
> );
> # if the first value is lower than 127, it gives a white 3d area;
> otherwise it is colored like the larger slice
> # for this example
> # 127 works, 126 and lower does not
>
> depending on the values, the 3d area is colored, or not.
>
>
> I am attaching my little test program. It was based on some of the
> sample programs from the distribution. I have tried a bunch of
> things, and if I am doing something wrong, I cannot figure out what
> it is.
>
> Can you please tell me if this is a bug, or something I am doing
> wrong?
>
> Thanks,
> Susan Cassidy
>
>