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#
| Prop | Type | Default |
|---|---|---|
data | RadialDatum[] | - |
periods | RadialPeriod[] | PERIODS |
title | string | "Goals progress" |
centerLabel | string | - |
centerValue | React.ReactNode | - |
thickness | number | - |
gap | number | 6 |
showLegend | boolean | true |
className | string | - |
Dependencies#
npm
motion
Built from
Related charts components#
Area ChartDependency free SVG area chart for React with a smoothed line, dashed grid, gradient fill and an optional highlighted point. Strokes stay crisp at any size.Bar ChartLightweight React bar chart with rounded bars, dashed gridlines and labels. Hovering a bar dims the rest and shows its value; the peak is highlighted first.Chart CardCard wrapper for charts with a title, optional description and a minimum height body. Pairs with the area, bar and donut charts in a React dashboard.Chart LegendWrapping chart legend with small color swatches and labels. Pass colors per series or fall back to accent, success, warning and danger theme tokens.Chart Tooltip CardTooltip card for charts showing a title and label and value rows with tabular numbers. Drop it into any chart library's custom tooltip slot.Donut ChartSingle value donut chart in SVG that fills an accent ring to a percentage of max and prints the percent in the middle. Labelled as an image for screen readers.
All chart components