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

Division through 0 in pDraw.class.php on line 2687 if only o
http://wiki.pchart.net/forum/viewtopic.php?f=5&t=29435
Page 1 of 1

Author:  gullevek [ Thu Jul 19, 2012 4:37 am ]
Post subject:  Division through 0 in pDraw.class.php on line 2687 if only o

This should be cough if the array only has one data set:

$XStep = (($this->GraphAreaX2 - $this->GraphAreaX1) - $XScale[0] *2 ) / ($XScale[1] == 0 ? 1 : $XScale[1]);

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