rangeColors

Gauge Properties for general information about Output components.

Specifies an array of one to three colors to be used for the Gauge ranges (color zones). The positions of the colors on the Gauge are determined by the ranges array. Colors can be specified by any of the methods shown for the background property.

Type

Array of colors in any of the following formats:

number (hex)          Example: 0xFF0000
string (color name)   Example: 'red'
array [r,g,b]         Example: [255,0,0]
JSON {r:_,g:_,b:_}    Example: {r:255,g:0,b:0}
java.awt.Color        Example: java.awt.Color.BLUE (BLACK, CYAN, DARK_GRAY,
                               GRAY, GREEN, LIGHT_GRAY, MAGENTA, ORANGE,
                               PINK, RED, WHITE, YELLOW)

Example

Gauge1.rangeColors = ['green','yellow','red'];
Gauge1.ranges = [5,10,15];

Either syntax below can be used in component script:

rangeColors           // unqualified
Gauge1.rangeColors    // qualified

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