gauge
Use for a single labeled value (one row). Optional min / max numbers; omit min → 0, omit max → 100. Both set ⇒ min < max or E_UNKNOWN_FIELD. A second row is E_DUP_KEY. series is ignored.
Do not use for a category comparison (bar) or a part-to-whole (pie).
x label · y number · series ignored
Rules. One row. A second row → E_DUP_KEY. Optional min/max. Omit max → 100, omit min → 0. Out-of-range values stay visible and are labeled above or below range.
Example
chart
markvis: 2
type: gauge
min: 90
max: 100
title: Five Points uptime still holds at 99.4
x: station
y: uptime
unit: %
station,uptime
Five Points,99.4| station | uptime |
|---|---|
| Five Points | 99.4 |
When the block is wrong
The rows stay, with one line that names the error.
chart
markvis: 2
type: gauge
min: 100
max: 10
title: min not less than max
x: station
y: uptime
station,uptime
Five Points,99.4| station | uptime |
|---|---|
| Five Points | 99.4 |
E_UNKNOWN_FIELD: gauge min must be less than max
Generated from packages/types/gauge/ and the type's row in SPEC.md.