Klar

Charts / React chart kit primitives / Progress

PillMeter

A row of pills lit up to a share, warming from orange to green; here revenue by procedure.

React component PillMeter, data through props. Distance to a target, a budget or a deadline. Tags: pills, meter, progress, share, rating, segmented.

Install

npm i klar-charts

import 'klar-charts/styles.css'
import { ThemeScope, PillMeter } from 'klar-charts'

# or copy the source:
npx shadcn@latest add https://klar.run/r/kit-pill-meter.json

Usage

<PillMeter value={r.pct / 100} colors={pillColors} />

Related pillmeter charts