Klar

Charts / React chart kit primitives / Progress

Ring

A single progress ring with a value inside; here on-time arrival for five carriers.

React component Ring, data through props. Distance to a target, a budget or a deadline. Tags: ring, progress, circle, percent, kpi, small-multiple.

Install

npm i klar-charts

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

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

Usage

<Ring value={c.onTime} size={64} stroke={5} color={c.onTime < 0.88 ? 'var(--amber)' : 'var(--accent)'}>…</Ring>

Related ring charts