ChartDirector 6.0 (Perl Edition)

Axis.setMinTickInc


Usage

setMinTickInc(inc)

Description

Sets the minimum distance between two ticks on the axis for auto-scaled axis.

The most common use of this method is to ensure the ticks are of integer values (the minimum distance set to 1).

ChartDirector auto-scaling will automatically determine the optimal number of ticks and labels on the axis. However, in some cases, the nature of the data may be such that the ticks should assume only certain discrete values (such as must be integers). This method will inform ChartDirector for this constraint when performing auto-scaling.

For a log scale axis, because the axis ticks are unevenly spaced, the minimum distance will be treated as the minimum value allowed for the axis scale.

Arguments

ArgumentDefaultDescription
inc(Mandatory)The minimum distance between two ticks on the axis as a data value.

Return Value

None