<dvt:threshold>

threshold threshold


Use the threshold tag to specify a threshold section for the metric of a gauge. You can create an infinite number of thresholds for a gauge.

Relationship with other tags

The threshold tag is a child tag of the thresholdSet tag.
The threshold tag has the following child tag: specialEffects.

Example

The following example shows the XML for a threshold tag.
<dvt:gauge>
<dvt:thresholdSet>
<dvt:threshold id="threshold_0" thresholdMaxValue="200" fillColor="#3C3C3C" borderColor="000000" text="Level 1"/>
<dvt:threshold id="threshold_1" thresholdMaxValue="400" fillColor="#2C2C2C" borderColor="000000" text="Level 2"/>
</dvt:thresholdSet>
</dvt:gauge>

Attributes

Name Type Supports EL? Description
id java.lang.String no Index of this threshold section
fillColor java.lang.String no Specifies the fill color for a threshold section of a gauge. Enter values in RGB hexadecimal. The example color="#000000" specifies black.
borderColor java.lang.String no Specifies the border color for a threshold section of a gauge. Enter values in RGB hexadecimal. The example color="#000000" specifies black.
thresholdMaxValue double no 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 no Specifies the string to be displayed in the legend for this threshold.