/

Gauge Chart

Display a single metric as a dial or arc. Perfect for KPIs, progress indicators, and performance metrics.

Usage

example.tsx
import { GaugeChart } from "@chartts/react"

<GaugeChart
  value={76}
  max={100}
  label="Performance"
  ranges={[
    { min: 0, max: 50, color: "#ef4444" },
    { min: 50, max: 75, color: "#f59e0b" },
    { min: 75, max: 100, color: "#10b981" },
  ]}
/>

Props

PropTypeDescription
valuenumberCurrent value
minnumberMinimum value. Default: 0
maxnumberMaximum value. Default: 100
labelstringLabel text below the value
arcnumberArc angle in degrees. Default: 240
thicknessnumberTrack thickness in px. Default: 20
ranges{ min: number; max: number; color: string }[]Color ranges for the track

Features

  • Configurable arc angle
  • Color ranges for thresholds
  • Animated value changes
  • Center label with value display
  • Multiple gauge sizes
  • Needle or arc fill modes

Other Charts