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
innerRadiusonPie, and slice labels and colors come fromchartConfig
https://reui.io/blocks/chart/pie-chart.mdsearch({ query: "pie chart", type: "block", category: "pie-chart" })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?
How many slices should a donut have?
Start building with ReUI Pro today.
Every Pro block, every style, and every future addition, with one license for unlimited projects.
From $249, once. Lifetime updates.