View unanswered posts | View active topics It is currently Sat Apr 27, 2024 5:27 pm



Reply to topic  [ 7 posts ] 
Bug in pChart class. 
Author Message
New pChart user
New pChart user

Joined: Fri Feb 18, 2011 12:31 pm
Posts: 2
Post 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.


Fri Feb 18, 2011 12:35 pm
Profile
New pChart user
New pChart user

Joined: Fri Feb 18, 2011 12:31 pm
Posts: 2
Post Re: Bug in pChart class.
I hate to bump, but has there been any thoughts about this?


Mon Apr 11, 2011 2:11 pm
Profile
New pChart user
New pChart user

Joined: Thu Apr 21, 2011 5:56 am
Posts: 2
Location: Munich / Germany
Post Re: Bug in pChart class.
Same problem here.
Really need a fix, cause it shows wrong results!


Thu Apr 21, 2011 6:00 am
Profile
New pChart user
New pChart user

Joined: Thu Apr 21, 2011 5:56 am
Posts: 2
Location: Munich / Germany
Post Re: Bug in pChart class.
Has anybody an idea for a workaround for this problem?
really important to me.
thanks.


Wed May 04, 2011 5:43 am
Profile
New pChart user
New pChart user

Joined: Tue Jul 05, 2011 5:18 pm
Posts: 2
Post Re: Bug in pChart class.
I have this problem in Pie Chart and just replace 0 to 0.0000001.


Tue Jul 05, 2011 5:22 pm
Profile
Site Admin
Site Admin
User avatar

Joined: Thu Dec 02, 2010 2:31 pm
Posts: 409
Location: France
Post Re: Bug in pChart class.
Hi,

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

Kind regards,
JD.


Wed Aug 03, 2011 1:22 pm
Profile WWW
Site Admin
Site Admin
User avatar

Joined: Thu Dec 02, 2010 2:31 pm
Posts: 409
Location: France
Post 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.


Fri Aug 05, 2011 8:51 am
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 7 posts ] 

Who is online

Users browsing this forum: No registered users and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron