bloxa

Gauge

FREE

Semicircle KPI gauge with colored bands and an optional needle.

Installation

Terminal
npx @bloxa/cli add gauge-chart
# or: npx shadcn@latest add @bloxa/gauge-chart

Packages installed automatically: motion

Examples

Score, bands, needle

72Performance score
38%Busy
64%Goal

API reference

Every component also accepts the props of the element it renders.

GaugeChart

PropTypeDefaultDescription
value / min / maxnumber— / 0 / 100Value and range.
bands{ to, color, label? }[]—Colored ranges; the value's band colors the arc.
needlebooleanfalseNeedle.
formatIntl.NumberFormatOptions—Center value format.
size / thicknessnumber240 / 18Width and thickness.