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

Chart.GaugeSeries
PropTypeDefaultDescription
dataChartDataPoint[]Array of segments. Each data point should include category and value fields.
categorystringField containing the category/state label for each segment (e.g. `mode`).
valuestringField containing numeric values used to calculate segment widths.
colorsstring[]Theme gauge paletteOptional override for segment colours. Provide the same length as the dataset.
heightnumber40Segment bar height in pixels.
namestringDisplay name surfaced in the legend and tooltip (if you include additional series).
showPercentagesbooleanfalseWhen 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.