View unanswered posts | View active topics It is currently Mon Jun 24, 2024 2:23 am



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 1 guest


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