pChart 2.x forum http://wiki.pchart.net/forum/ |
|
Division by zero error on Stock Chart with one entry http://wiki.pchart.net/forum/viewtopic.php?f=5&t=29353 |
Page 1 of 1 |
Author: | dejab [ Fri Jun 01, 2012 3:23 pm ] |
Post subject: | Division by zero error on Stock Chart with one entry |
If utilizing stock chart and supplying only one row of data, chart fails at line 112 in pStock.class with division by zero error. $XStep = ($this->pChartObject->GraphAreaX2-$this->pChartObject->GraphAreaX1-$XMargin*2)/$XDivs; |
Author: | bluego78 [ Mon Jul 09, 2012 1:03 pm ] |
Post subject: | Re: Division by zero error on Stock Chart with one entry |
Code: if($XDivs!=0) $XStep = ($this->pChartObject->GraphAreaX2-$this->pChartObject->GraphAreaX1-$XMargin*2)/$XDivs; else $XStep = ($this->pChartObject->GraphAreaX2-$this->pChartObject->GraphAreaX1-$XMargin*2); |
Page 1 of 1 | All times are UTC |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |