Chart Types
Gauge Charts
Present cumulative proportions using horizontal stacked bars. Gauges excel at showing HVAC state breakdowns, time-in-mode summaries, or categorical utilisation percentages.
Example
HVAC Time States (24h)
Time in Temperature Zones (24h)
System Utilization (%)
Energy Consumption Breakdown
Comfort Zone Distribution
Each segment displays the time share for a given HVAC cycle mode. Percentages are calculated automatically from the dataset.
Usage
<Chart.Root data={gaugeData} height={160}>
<Chart.GaugeSeries
data={gaugeData}
category="mode"
value="minutes"
colors={[
"var(--ambient-data-series-5-area)",
"var(--ambient-data-series-3-area)",
"var(--ambient-data-series-6-area)",
]}
showPercentages
/>
</Chart.Root>Props
| Prop | Type | Default | Description |
|---|---|---|---|
| data | ChartDataPoint[] | — | Array of segments. Each data point should include category and value fields. |
| category | string | — | Field containing the category/state label for each segment (e.g. `mode`). |
| value | string | — | Field containing numeric values used to calculate segment widths. |
| colors | string[] | Theme gauge palette | Optional override for segment colours. Provide the same length as the dataset. |
| height | number | 40 | Segment bar height in pixels. |
| name | string | — | Display name surfaced in the legend and tooltip (if you include additional series). |
| showPercentages | boolean | false | When true, tooltip values show percentage-of-total instead of raw values. |
Implementation notes
- Gauges ignore chart axes — they render a horizontal bar stack within the root margins supplied to `Chart.Root`.
- Tune the `height` prop on `Chart.GaugeSeries` to adjust bar thickness; the chart resizes automatically if you need more space.
- Combine with `Chart.Region` overlays to highlight ideal ranges for target operating zones.
- Use `showPercentages` whenever the underlying data is already normalised or you want to emphasise share-of-time.