A segmented ring on a ticked ruler in ink tones and patterns that each reach 3:1, shares that total exactly 100%, segments that sweep and morph, and a centre that reads out whatever you hover.
pnpm dlx shadcn@latest add @beautiful-ui-pro/donut-chartNeeds your registry key. Your components.json style picks the Base UI or Radix build: radix-*, new-york and default get Radix, base-* gets Base UI.
The CLI adds the styles to the CSS file named in components.json (tailwind.css). Check that it points at your global stylesheet, that the project uses Tailwind CSS v4, and that the file is imported in your root layout. Installed by hand: paste styles.css into that file.
Import it and pass your content. The props that matter most are listed next.
import { DonutChart } from "@/components/ui/notchset/donut-chart";
const byAgent = [
{ label: "Planner", value: 6.4 },
{ label: "Triage", value: 3.1 },
{ label: "Verifier", value: 2.2 },
{ label: "Router", value: 0.9 },
];
export function TokensByAgent() {
return <DonutChart data={byAgent} unit="M" label="ALL AGENTS" caption="TOKENS" />;
}data–
{ label, value }[]Up to six segments.
unit / digits–
string / numberAfter values (M).
label / caption–
stringThe centre at rest.
components/ui/notchset/donut-chart.tsx
This component is included with Pro.
Try the live preview above. Get Pro to install the source.