Image_Graph_Axis::setTicksMajor()

Image_Graph_Axis::setTicksMajor() -- Set major ticks on axis

Synopsis

require_once '/Graph/Elements.php';

void Image_Graph_Axis::setTicksMajor (array $ticks)

Description

The list of values on the axis indicates where you would like "major ticks" to be drawn. Null results in automatic detection of ticks based upon the auto-steps-setting. Note that drawing of numbers on the axis will be done at all major ticks. If you don't want numbers to be drawn, refer to the minor ticks. Another alternative is to set the numberformat to an empty string.

Parameter

array $ticks

list of values (int/float) on the axis or NULL

Throws

throws no exceptions thrown

See

see Image_Graph_Axis::setNumberformat()

see Image_Graph_Axis::setTicksAutoSteps()

see Image_Graph_Axis::setTicksMinor()

Note

This function can not be called statically.