Menu

#66 drawScale SCALE_NORMAL does not apply as it should

open
nobody
None
5
2010-06-14
2010-06-14
Anonymous
No

using the current code:
if ( is_numeric($Value) )
{
if ( $this->VMax < $Value) { $this->VMax = $Value; }
if ( $this->VMin > $Value) { $this->VMin = $Value; }
}

if we have points lets say from 57.40 to 57.98 and some with no value, the Y axis wil start from 0 with a 10 increment and the graph line will be positioned at the top of the graph as a straight line.

if we use this instead:

if ( is_numeric($Value) && $Value!=="")
{
if ( $this->VMax < $Value) { $this->VMax = $Value; }
if ( $this->VMin > $Value || $this->VMin==null ) { $this->VMin = $Value; }
}

the Y axis will start from 57.40 upto 58 into a 0.1 increment

10x.

Discussion


Log in to post a comment.