gauge
gauge, tile type
The gauge tile displays a single numeric value on a semicircular scale. It
expects exactly one numeric expression in its with block. The value is
clamped to the configured gaugeMin and gaugeMax bounds. The tile supports
both legacy coordinates and block placement syntax.
show gauge "Service level" with 0.85
Examples
Legacy dashboards attach gauge-specific StyleCode to the gauge entry:
show gauge "Fill rate" {
entry {
gaugeMin: 0;
gaugeMax: 1;
gaugeFillColor: orange;
gaugeStrokeColor: "green/700"
}
} with 0.85
Block placement can be combined with additional tile-level gauge properties:
show gauge "Fill rate" {
1..3, 1..10;
gaugeLabelPosition: "top";
gaugeVariant: "dot";
gaugeChromeColor: orange;
gaugeAngle: 180
} with
85 { gaugeMin: 0; gaugeMax: 100; unit: "%" }
Remarks
Gauge tiles support dashboard slicing via slices: like other tiles. When the
slice has no data, the tile displays an error message.
With block placement, gaugeLabelPosition, gaugeVariant,
gaugeChromeColor, and gaugeAngle belong to the tile itself.
gaugeMin and gaugeMax still belong to the gauge entry.
See show for the general placement syntax.
gaugeLabelPosition accepts "center" and "top". gaugeVariant accepts
"bar" and "dot". gaugeAngle accepts values from 180 to 270, and the
new dashboard renderer also accepts auto.
StyleCode
For generic StyleCode rules, see stylecode.
- In
show gauge, StyleCode may be attached to the gauge tile itself, to theentry, and to thevalue. - gauge tile
- entry and value