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

Bug: Empty values in CSV files not parsed correctly
http://wiki.pchart.net/forum/viewtopic.php?f=5&t=131
Page 1 of 1

Author:  nobser [ Fri Jan 21, 2011 10:47 pm ]
Post subject:  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

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