About
A donut chart where clicking or hovering a sector or legend pill updates a center metric readout, useful for analytics dashboards comparing shares across categories like browser usage.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Active Donut Metric Chart to your project and fits it to your theme.
Code
How Active Donut Metric Chart is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import ActiveDonutMetric from "@/components/ui/tanstack-charts-active-donut-metric";
export default function Demo() {
return (
<div className="flex w-full items-center justify-center p-8">
<ActiveDonutMetric />
</div>
);
}
















