Threshold Class Properties
In this section, the Threshold class properties are presented in alphabetical order.
Description
Use this property to specify the color values as an Array of Number. Choose a color for each reference area on the gauge.
The following lists all the values you can specify. You can use either the numeric or constant value.
Numeric Value |
Constant Value |
Description |
---|---|---|
-1 |
%ChartColor_Series_Default Note: %ChartColor_Series_Default is the default value. |
Default color as selected by the charting engine. |
0 |
%ChartColor_Black |
Black |
1 |
%ChartColor_Blue |
Blue |
2 |
%ChartColor_Cyan |
Cyan |
3 |
%ChartColor_DarkGray |
Dark gray |
4 |
%ChartColor_Gray |
Gray |
5 |
%ChartColor_Green |
Green |
6 |
%ChartColor_LightGray |
Light gray |
7 |
%ChartColor_Magenta |
Magenta |
8 |
%ChartColor_Orange |
Orange |
9 |
%ChartColor_Pink |
Pink |
10 |
%ChartColor_Red |
Red |
11 |
%ChartColor_White |
White |
12 |
%ChartColor_Yellow |
Yellow |
13 |
%ChartColor_Red_Orange |
Red-orange |
14 |
%ChartColor_Yellow_Green |
Yellow-green |
15 |
%ChartColor_Blue_Violet |
Blue-violet |
16 |
%ChartColor_Purple |
Purple |
17 |
%ChartColor_Yellow_Orange |
Yellow-orange |
This property is read/write.
Example
In the following example, the colors red, yellow, and green are specified by numeric value rather than by constant:
&Colors = CreateArray(10, 12, 5);
&oThr1.Colors = &Colors;
Description
Use this property to specify the descriptions as an Array of String. The number of descriptions in the Descriptions array should match the number of colors that you have defined in the Colors array.
This property is read/write.
Example
The Descriptions array provides descriptions for the color values:
&Descr = CreateArray("Low", "Med", "High");
&oThr1.Descriptions = &Descr;
Description
Use this property to optionally specify an identifier for the Threshold object as a Number.
This property is read/write.
Description
Use this property to specify the values as an Array of Number. Since the values mark the boundaries between the colors in the threshold, the number of entries in the Values array should be one less than the number of colors in the Colors array.
This property is read/write.
Example
In this example, the number items in the Values array is one less than the number items in the Colors array:
&Values = CreateArray(30, 75);
&Colors = CreateArray(%ChartColor_Red, %ChartColor_Yellow, %ChartColor_Green);
&Descr = CreateArray("Low", "Med", "High");
&oThr1.Values = &Values;
&oThr1.Colors = &Colors;
&oThr1.Descriptions = &Descr;