A capacity gauge answers a narrow question: what proportion of the available capacity is currently occupied? It does not show whether the value is rising, how long it has been high or what caused it. The screenshot is from Fission's chart gallery.
What the chart is for
Use a gauge for one current utilisation percentage, such as occupied storage capacity. Keep a trend nearby if the rate of change matters. A large occupied quantity alone is not a high utilisation rate unless the available capacity is also known.
Data model
GaugeSeries accepts labelled values as Vec<(String, f32)>; its data builder takes Vec<(&str, f32)>. The renderer uses only the first entry and maps its value onto a fixed 0–100 arc. Do not pass raw bytes or several independent capacity values and expect a multi-dial chart. Calculate the percentage in the data layer and handle zero capacity explicitly.
Authoring from a Fission component
Pass one validated percentage from the current capacity snapshot. The accompanying text preserves the reported value even when it exceeds 100: the gauge arc clamps at its limits, so the arc alone cannot communicate over-allocation.
Test empty data, zero utilisation, full capacity and an over-capacity value. Validate finite values and reject a negative used quantity before constructing the component. Provide occupied and available quantities, the observation time and the percentage as accessible content; do not rely on the needle angle or colour to explain a capacity problem.