SetYAxisLabels method: Chart class

Syntax

SetYAxisLabels((&Array_of_String))

Description

Use the SetYAxisLabels method to specify an array of labels for the y-axis. Labels specified with SetYAxisLabels overwrite the default labels.

If the greatest y-axis value is less than ten, the default y-axis labels are given a decimal place. If the greatest y-axis value is greater than or equal to ten, the default y-axis labels are displayed as integers.

Note:

Default label text is not automatically translated. If you set your own labels, be sure to use translated text, such as message catalog entries.

If you set the labels yourself, you should set YAxisTicks and YAxisMax because you no longer have numbers that correlate to the data points. YAxisTick is used to calculate the increment of each major tick mark. If YAxisTick is not set, tick mark increment will be set to 1.

Note:

The SetYAxisLabels method does not work with negative y-axis value.

Parameters

Parameter Description

&Array_of_String

Specify an already instantiated array of string that contain the labels that you want to use for the y-axis.

Returns

None.