DocsSupportPricing
Roadmap (has updates coming soon)XFigma3.7K
Sign inGet All-Access
Categories
Area Chart3
Bar Chart14
Composed Chart5
Line Chart6
Pie Chart2
  • Inflows by Source
  • Browser Usage
Radial Chart3
Sparkline11
Status Tracker3

For AI Agents

Hand your agent this brief or the ReUI MCP, not a screenshot. Installs with a ReUI Pro or Ultimate license.

When to use

  • A share of a total split across a few sources, browsers or funds around a donut
  • A donut with the total in its center and a legend row per segment under period tabs

When not to use

  • A single figure measured against a target on an arc gauge: use the Radial Chart blocks
  • Shares across more than a handful of categories that need exact comparison: use the Bar Chart blocks

Agent notes

  • The donut hole is the innerRadius on Pie, and slice labels and colors come from chartConfig
Markdownhttps://reui.io/blocks/chart/pie-chart.md
MCPsearch({ query: "pie chart", type: "block", category: "pie-chart" })
Full index for agents:llms.txtReUI MCP setup

Shadcn Donut Charts With a Total and a Legend

A pie or donut answers one question: how a total splits across a few sources. Both blocks here are donuts, because the hole holds the total, which a full pie cannot, and both list each segment's amount and share beside the ring.

They draw with a Recharts Pie inside the shadcn Chart wrapper, with Tabs for the period and colors from the chart config, so they follow your theme in light and dark.

All Pie Chart Blocks

Open any block on its own page for a live preview, the components it is built from, and the install command.

  • Inflows by Source Capital inflows donut chart card with Week, Month, Year tabs and a per-source legend
  • Browser Usage Browser usage donut chart card with 5D, 2W and 1M period tabs and total visitors KPI

What These Pie Chart Blocks Cover

  • Capital inflows donut Inflows by source with Week, Month and Year tabs, a center total and a legend of each source's amount and percent share.
  • Browser share donut Visitor share by browser with slice labels, a total visitors stat, a trend badge and 5D, 2W and 1M tabs.

Related Shadcn Chart Categories

  • Area Chart Area chart cards with gradient fills, stacked series, period tabs and hover tooltips for trends over time.
  • Bar Chart Bar and column charts, grouped and stacked bars, lollipop stems and segmented bar meters for comparing values.
  • Composed Chart Composed charts that layer areas and lines on one axis, with reference lines, goals and release markers.
  • Line Chart Line chart cards with single and multi-series lines, dual axes, reference lines and metric switchers.
  • Radial Chart Radial gauges with semicircle and full arcs, segmented rings and status labels for progress toward a target.
  • Sparkline KPI tiles and metric lists where each value pairs with a small line, area or bar sparkline and a delta.
  • Status Tracker Per-row status trackers for run history, deploy stages and pipelines, with hover details and filters.
  • Stats Number-first KPI strips for when the metric leads and a trend line would only be decoration.
  • Dashboard Full overview screens that combine a metric row, a chart layer and a data grid into one page.

All Shadcn Block Groups

Browse the full ReUI Shadcn blocks library by product surface. Each group bundles category-level blocks you can mix and match across your project.

  • Shadcn Application Blocks (301) Browse 301 Shadcn Application blocks across 23 categories.
  • Shadcn Data Grid Blocks (42) Browse 42 Shadcn Data Grid blocks across 9 categories.
  • Shadcn Charts Blocks (47) Browse 47 Shadcn Charts blocks across 8 categories.
  • Shadcn Solutions Blocks (74) Browse 74 Shadcn Solutions blocks across 10 categories.
  • Shadcn AI & Agents Blocks (18) Browse 18 Shadcn AI & Agents blocks across 2 categories.
  • Shadcn eCommerce Blocks (87) Browse 87 Shadcn eCommerce blocks across 13 categories.
  • Shadcn Marketing Blocks (67) Browse 67 Shadcn Marketing blocks across 8 categories.

Frequently Asked Questions

Can I turn a donut into a full pie?

Yes. The hole is the innerRadius on the Recharts Pie, so setting it to 0 draws a full pie. Keep the donut if you want the total in the center.

How many slices should a donut have?

A handful. Past 5 or 6 segments the small ones become hard to compare, and a bar chart that ranks the values reads better.

Start building with ReUI Pro today.

Every Pro block, every style, and every future addition, with one license for unlimited projects.

Get All-Access

From $249, once. Lifetime updates.

Application

  • App ShellAdded 4 new App Shell blocks
  • Auth
  • Card
  • Dashboard
  • Dialog
  • Empty State
  • Event Calendar
  • Flow
  • Form
  • Gantt
  • Kanban Board
  • List
  • Navbar
  • Onboarding
  • Profile
  • Rich Text Editor
  • Schedule
  • Settings
  • Sheet
  • Stats
  • Timeline
  • Whiteboard
  • Wizard

Data Grid

  • Base
  • AdvancedNew Advanced category with 3 Data Grid blocks
  • Columns
  • Drag & Drop
  • Editing
  • Expansion
  • Filtering
  • Grouping
  • Virtualization

Charts

  • Area Chart
  • Bar Chart
  • Composed Chart
  • Line Chart
  • Pie Chart
  • Radial Chart
  • Sparkline
  • Status Tracker

AI & Agents

  • AI Chat
  • Agent Activity

Solutions

  • Dev Ops
  • AI Ops
  • CRM
  • Agents
  • Analytics
  • Billing
  • Bookings
  • Files
  • Inventory
  • Users

Templates

  • E-commerce
  • SaaS
  • Dashboard
  • Landing
  • All templates

eCommerce

  • Category Card
  • Checkout
  • Comparison
  • Coupon
  • Filter Sidebar
  • Product Card
  • Product Detail
  • Product Grid
  • Receipt
  • Review
  • Shopping Cart
  • Wishlist
  • Shop Hero

Marketing

  • Blog
  • Compare
  • Contact
  • CTA
  • FAQ
  • Hero
  • How It Works
  • Pricing

Resources

  • Components
  • Blocks
  • Icons
  • MCP for Agents
  • Docs
  • Support
  • Pricing
  • Tailwind Plus Alternative
  • Roadmap(has updates coming soon)
  • AffiliateSoon

Legal

  • Privacy Policy
  • Terms & Conditions
  • License
  • Refunds
  • Cookies

© 2026 ReUI. All rights reserved.

3.7K
  1. Blocks
  2. Charts
  3. Pie Chart
Markdown

Shadcn Pie and Donut Chart Blocks

2 donut chart cards that split a total into shares, with the total in the center, a legend row per segment and tabs that swap the period.