ChartDirector Ver 3.0 (Perl Edition)

Axis.setLabels2


Usage

setLabels2(labels[, formatString ])

Description

Set the numeric/date/time labels to be used on the axis.

This method is typically used to set the x-axis to enumerated scale. For more details on what is enumerated axis scale, please refer to Axis.setLabels.

This method assumes the labels are in their "native" form (that is, not formatted). Please refer to Date Representation for the native date/time formats supported in ChartDirector.

If the labels are already formatted into human readable form (that is, they are text strings), use Axis.setLabels instead.

In some cases, it may be desirable to skip some labels (e.g. draw one label per five data points). If you want to leave a label position empty, use NoValue as the axis label. If you want to draw just a minor tick at a label position with no label text, use MinorTickOnly as the axis label.

Arguments

ArgumentDefaultDescription
labels(Mandatory)An array of numbers/dates to be used as the axis labels.
formatString""A format string to specified how to format the labels into human readable form. Please refer to Axis.setLabelFormat for the syntax of the format string. An empty string means the format will be automatically determined.

Return Value

A TextBox object that represents the prototype of the axis labels. You may use the methods of this object to fine-tune the appearance of the axis labels.