Charts / React chart kit primitives / Progress
A ticked half-dial filled to a value, with colour stops along the track.
React component Gauge, data through props. Distance to a target, a budget or a deadline. Tags: gauge, dial, half-circle, ticks, kpi, target.
npm i klar-charts
import 'klar-charts/styles.css'
import { ThemeScope, Gauge } from 'klar-charts'
# or copy the source:
npx shadcn@latest add https://klar.run/r/kit-gauge.json<Gauge
value={budgetRemaining}
size={250}
ticks={54}
colors={['var(--red)', 'var(--amber)', 'var(--accent)', 'var(--accent)', 'var(--accent)', 'var(--accent)', 'var(--accent)', 'var(--accent)']}
>…</Gauge>