Atelier UI

Search components…

Search components…

Donut Chart

SVG donut chart with focusable segments, legend, and a center label that updates on hover or focus.

Edit in sandbox

Copy a prompt for your AI coding tool with the source, dependencies and usage

Props

DonutChartProps

Also accepts all props of Omit<React.ComponentProps<"div">, "children">

PropTypeDefaultDescription
data* requiredDonutDatum[]——
totalLabelstring"Total"Label shown under the total in the centre
titlestring"Donut chart"—

Install

$ npx shadcn@latest add https://chromotion.dev/r/donut-chart.json

More like this