View unanswered posts | View active topics It is currently Thu Mar 28, 2024 7:51 pm



Reply to topic  [ 2 posts ] 
Division by zero error on Stock Chart with one entry 
Author Message
New pChart user
New pChart user

Joined: Tue May 15, 2012 1:43 pm
Posts: 2
Post 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;


Fri Jun 01, 2012 3:23 pm
Profile
New pChart user
New pChart user

Joined: Thu Feb 16, 2012 1:26 pm
Posts: 1
Post 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);


Mon Jul 09, 2012 1:03 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

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