Pace UI

Donut Chart

Component 1

About

A ring-cutout donut chart built on TanStack Charts that visualizes category proportions, such as revenue channel breakdowns, with an interactive tooltip.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Donut Chart to your project and fits it to your theme.

Code

How Donut Chart is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import DonutChart from "@/components/ui/tanstack-charts-donut-chart";

export default function DonutChartDemo() {
  return (
    <div className="flex w-full items-center justify-center p-6">
      <DonutChart />
    </div>
  );
}

Dependencies

More by Pace UI

View all
  • Dot Loader

    Dot Loader

    965
  • Flip Reveal

    Flip Reveal

    669
  • Dot Flow

    Dot Flow

    270
  • Draw Line Text

    Draw Line Text

    120
  • Liquid Glass

    Liquid Glass

    63
  • Liquid Cursor

    Liquid Cursor

    51
  • Layered Stack

    Layered Stack

    47
  • Calendar Heatmap Chart

    Calendar Heatmap Chart

    16