Radial Chart

A React radial bar chart of concentric progress rings with ring labels, a legend and a rolling center total that animate on data change, or a single radial progress ring.

src/registry/ui/radial-chart.tsx/r/radial-chart.json

Installation#

bash
npx shadcn@latest add https://ui.minidev.pro/r/radial-chart.json

Usage#

tsx
import { RadialChart } from "@/components/ui/radial-chart"

export function Example() {
  return <RadialChart />
}

API reference#

RadialChart props
PropTypeDefault
dataRadialDatum[]-
periodsRadialPeriod[]PERIODS
titlestring"Goals progress"
centerLabelstring-
centerValueReact.ReactNode-
thicknessnumber-
gapnumber6
showLegendbooleantrue
classNamestring-

Dependencies#

npm

motion
All chart components