View unanswered posts | View active topics It is currently Sun Apr 28, 2024 10:12 pm



Reply to topic  [ 1 post ] 
Bug: Empty values in CSV files not parsed correctly 
Author Message
New pChart user
New pChart user

Joined: Fri Jan 21, 2011 10:33 pm
Posts: 1
Post Bug: Empty values in CSV files not parsed correctly
Hi!

When using "importFromCSV", empty values are not parsed correctly.

CSV-Example:
1;4;;;8;4;7;6

Value with index 2 and 3 are not displayed as "missing values" but as 0 (zero)! This makes a graph a litte "jumpy".I already fixed the code for me:

File "class/pData.class", line 437 new code:
foreach($Values as $Key => $Value) { if ( !in_array($Key,$SkipColumns) ) { if ($Value=="") $this->addPoints(VOID,$SerieNames[$Key]); else $this->addPoints($Value,$SerieNames[$Key]); } }

Would be nice to add it to the standard distribution ;)

Bye, Nobser


Fri Jan 21, 2011 10:47 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 1 post ] 

Who is online

Users browsing this forum: No registered users and 27 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