SetGaugeRange

Applies only to Gauges.

Syntax gauge.SetGaugeRange(rangeName, color, min, max [; rangeName, color, min, max]*)

Description Specifies color ranges for Gauges.

You can send as many color ranges as you want in a single Graph.SetGaugeRange call. The parameters for each range should be separated from each other by a semi-colon (or the series delimiter, which is specified in the Main. ItemDelimiter method). Example 5.26 illustrates how to do this.

For more information about gauges, refer to "Gauges" on page 13-35.

Parameters Graph.SetGaugeRange() accepts the following parameters.

rangeName

String

The name of the color range. This name will appear in the descriptive text for the gauge.

color

color

The six-digit hexadecimal color code for the data range. The color should not be preceded by a pound # sign, as is done in HTML.

min

float

The minimum value for the color range.

max

float

The maximum value for the color range.

Example 5.26 Setting Gauge Color Ranges

gauge.setGaugeRange(Yellow, b2b200, 60, 80; Red, b20000, 80, 115)