Oracle Fusion Middleware Data Visualization Tools Tag Reference for Oracle ADF Faces 12c (12.2.1.2) E76719-01 |
Use the threshold tag to specify a threshold section for a gauge or spark chart. You can create an infinite number of thresholds for a gauge. Note: Only the thresholdMaxValue and fillColor apply when using the threshold with spark charts.
The threshold tag is a child tag of the thresholdSet tag.
The threshold tag has the following child tag: specialEffects.
The following example shows the XML for a threshold tag. In this example, there are three threshold tags specify three threshold ranges. The first threshold range is from the minimum value of the gauge to 200, the second one is from 200 to 400, and the third one is from 400 to the maximum value of the gauge. The last threshold tag does not need to provide a thresholdMaxValue.
<dvt:gauge> <dvt:thresholdSet> <dvt:threshold thresholdMaxValue="200" fillColor="#FF0000" borderColor="000000" text="Level 1"/> <dvt:threshold thresholdMaxValue="400" fillColor="#990000" borderColor="000000" text="Level 2"/> <dvt:threshold fillColor="#330000" borderColor="000000" text="Level 3"/> </dvt:thresholdSet> </dvt:gauge>
Name | Type | Supports EL? | Description |
---|---|---|---|
id | java.lang.String | no | Specifies the identifier for the threshold component.
Note: This property does not specify the index for the threshold component. Indexes of thresholds are implicitly set, as the order of threshold tags in the jspx page is used as index. |
fillColor | java.lang.String | yes | Specifies the fill color for a threshold section of a gauge. Enter values in RGB hexadecimal. This color property takes 6 or 8 digit hex as input. When 8 digit hex is used, the first 2 digits represent transparency, otherwise the color is opaque. |
borderColor | java.lang.String | yes | Specifies the border color for a threshold section of a gauge. Enter values in RGB hexadecimal. This color property takes 6 or 8 digit hex as input. When 8 digit hex is used, the first 2 digits represent transparency, otherwise the color is opaque. |
thresholdMaxValue | double | yes | Specifies the upper bound of the threshold. For the final threshold in a threshold set, this setting is ignored. The maximum value of the Gauge becomes the thresholdMaxValue for the last threshold. |
text | java.lang.String | yes | Specifies the string to be displayed in the legend for this threshold. |