Skip to content
LoidoltTheme 0.11.1
Svelte 5

Component

GaugeChart

One reading on a scale, filled in the accent colour or shown with a needle.

import { GaugeChart } from '@loidolt/theme-charts';

Example

Bed utilisation

Gauge reading 72 on a scale of 0 to 100 (72%).

Bed utilisation
ReadingValue
Value72
Minimum0
Maximum100
Queue length

Gauge reading 14 on a scale of 0 to 40 (35%).

Queue length
ReadingValue
Value14
Minimum0
Maximum40

Props

Generated from the component source, so it cannot drift from the implementation.

GaugeChart props
PropTypeDefaultNotes
data required GaugeData—The reading, and the scale it sits on (0–100 unless given).
tableLabels { readingLabel?: string; valueLabel?: string; minLabel?: string; maxLabel?: string; }{}Headings of the data table columns.

Plus the attributes of Omit<ComponentProps<typeof Chart>, 'option' | 'table' | 'extensions'>andGaugeOptions, forwarded to the root element.