|
Setting minimum zAxis value... |
Posted by Colin on Jul-03-2012 23:17 |
|
Hello,
I was wondering how to set the min and max values for the y-axis. I can't find it in the documentation or here in the forum.
I have a spline line that encounters a 0 and draws below zero causing the y-axis to show negative values, and another example thats a % with spline that I would like to have max at 100.
Thanks,
Colin
|
Re: Setting minimum zAxis value... |
Posted by Peter Kwan on Jul-04-2012 01:13 |
|
Hi Colin,
You may use Axis.setLinearScale to control the axis scale. For example, in PHP, the code is:
$c->yAxis->setLinearScale(0, 100, 20);
You may also want to clip the spline to the plot area using:
$c->setClipping();
Hope this can help.
Regards
Peter Kwan |
Re: Setting minimum zAxis value... |
Posted by Colin on Jul-04-2012 01:45 |
|
That worked perfectly. Thank you! |
|