axis.setLabelAlias(value,alias)

Replace the specified label on the axis with an alias. The xAxis, yAxis, and y2Axis properties can be used as a shortcut.

Parameters

value

Value (string) to be replaced

alias

Replacement string

Example

Chart1.axis['Customer:City'].setLabelAlias('New Brunswick','New Bruns');
Chart1.axis['Customer:City'].setLabelAlias('San Francisco','San Fran');

setLabelAlias

Either syntax below can be used in component script:

axis['...'].setLabelAlias             // unqualified
Chart1.axis['...'].setLabelAlias      // qualified

For onInit/onRefresh scripts, and for component and property scripts on other components, the second (qualified) form is required.