pChart 2.x forum
http://wiki.pchart.net/forum/

Bug in pChart class.
http://wiki.pchart.net/forum/viewtopic.php?f=5&t=256
Page 1 of 1

Author:  thepurpleblob [ Fri Feb 18, 2011 12:35 pm ]
Post subject:  Bug in pChart class.

Hi,

Version 2.1.0

The chart class seems to ignore zero data values. That is, it ignores that pie slice and replaces it with the next non-zero one. Example...

$chartData->addPoints( array(1,2,3),"Value" );
$chartData->addPoints(array('Red','Green','Blue'),"Legend");

results in three slices red=1, green=2, blue=3

However if the data was...

$chartData->addPoints( array(1,0,3),"Value" );

(note the zero) it would display red=1 and green=3 (no blue). What it should display is red=1 and blue=3 (no green)

This is particularly bad if the slice colours matter to you and have been set using setSliceColor. This bugs stops them being consistent.

Author:  thepurpleblob [ Mon Apr 11, 2011 2:11 pm ]
Post subject:  Re: Bug in pChart class.

I hate to bump, but has there been any thoughts about this?

Author:  Barrus [ Thu Apr 21, 2011 6:00 am ]
Post subject:  Re: Bug in pChart class.

Same problem here.
Really need a fix, cause it shows wrong results!

Author:  Barrus [ Wed May 04, 2011 5:43 am ]
Post subject:  Re: Bug in pChart class.

Has anybody an idea for a workaround for this problem?
really important to me.
thanks.

Author:  ericlin [ Tue Jul 05, 2011 5:22 pm ]
Post subject:  Re: Bug in pChart class.

I have this problem in Pie Chart and just replace 0 to 0.0000001.

Author:  jean-damien [ Wed Aug 03, 2011 1:22 pm ]
Post subject:  Re: Bug in pChart class.

Hi,

I've just fixed it for the next release. Thanks for having raised it ;o)

Kind regards,
JD.

Author:  jean-damien [ Fri Aug 05, 2011 8:51 am ]
Post subject:  Re: Bug in pChart class.

The 2.1.2 version has been published yesterday correcting this bug and is now available for download at http://www.pchart.net/download.

JD.

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/