Pace UI

Center Donut Chart

Component

About

A donut/pie chart that shows a hollow inner radius with an aggregated KPI total text label centered in the hole, useful for analytics dashboards and data insight summaries.

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

Code

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

Usage.tsx

import CenterDonut from "@/components/ui/tanstack-charts-center-donut";

export default function Preview() {
  return (
    <div className="flex items-center justify-center p-8">
      <CenterDonut />
    </div>
  );
}

Dependencies

More by Pace UI

View all
  • Dot Loader

    Dot Loader

    960
  • Flip Reveal

    Flip Reveal

    669
  • Dot Flow

    Dot Flow

    267
  • Draw Line Text

    Draw Line Text

    119
  • Liquid Glass

    Liquid Glass

    62
  • Liquid Cursor

    Liquid Cursor

    51
  • Layered Stack

    Layered Stack

    46
  • Calendar Heatmap Chart

    Calendar Heatmap Chart

    10

Explore more

Part of Pace UI — browse the full library on 21st.dev.