|
|
|
|
Page 1 of 1
|
[ 1 post ] |
|
Author |
Message |
CastleSeven
New pChart user
Joined: Wed Sep 21, 2011 1:36 pm Posts: 1
|
AxisBoundary issues
Hey everyone, I'm trying to form a line chart that scales automatically, but if I use the FLOATING scale mode, my line chart shoots off the top of the graph. So I opted to test with the MANUAL scale mode and set the axis boundaries statically. This works, but my input data will be changing, so I'd like to be able to grab the max of the data points myself and feed it into the AxisBoundary array. My problem is, the following doesn't work:
$maxVoltage = max($xAxis); $axisBoundaries = array(0=>array("Min"=>0,"Max"=>$maxVoltage)); $scaleSettings = array("Mode"=>SCALE_MODE_MANUAL,"ManualScale"=>$axisBoundaries,"DrawSubTicks"=>TRUE,"DrawArrows"=>TRUE,"ArrowSize"=>6); $myPicture->drawScale($scaleSettings);
The issue lies where I'm setting the "Max" value. If I hardcode a value, it works fine, but using a variable doesn't work. Is this functionality supported?
Thanks!
|
Wed Sep 21, 2011 1:54 pm |
|
|
|
Page 1 of 1
|
[ 1 post ] |
|
Who is online |
Users browsing this forum: No registered users and 9 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
|
|
|
|