By default the Image_Graph axis will have the default directions listed below:
| Axis type | Min. pos. | Max. pos. |
|---|---|---|
| X | Left | Right |
| Y | Bottom | Top |
| Sec. Y | Bottom | Top |
It is however possible to change the direction of the axis, so that for example the y axis is ordered from Top to Bottom instead.
This is achieved by using the Image_Graph_Axis::setInverted() method, like:
$AxisY =& $Plotarea->getAxis('y'); $AxisY->setInverted(true);