Radial Bar Chart for React
A React radial bar chart draws 2 to 5 measures as concentric rings against their goals, like activity rings. Pass data as readonly RadialBarItem[]: takes 2–5 measures, outermost ring first.
npx shadcn@latest add https://lokendra-builds.github.io/sheenui/r/radial-bar-chart.jsonQuarterly goals
RadialBarChartRadialBarTabledefaultRadialBarChartLabels- +1 more
Files to copy
11 folders · 25 files · 4 packages
- From
theme/src/ components/charts/{radial-bar-chart.tsx, chart-export-menu.tsx, chart-export.ts, chart-figure.tsx, chart-fit.tsx, chart-icons.tsx, chart-parts.tsx, chart-patterns.tsx, chart-utils.ts}components/charts/chart-parts/components/drawer/parts/sheet.tsxcomponents/kbd/components/menu/components/skeleton/components/status-icons/hooks/{use-controllable.ts, use-intersection.ts, use-latest.ts, use-media-query.ts, use-preferences.ts}motion/tokens.tslib/{cn.ts, csv.ts, form.ts, glide-highlight.tsx, heading.ts, math.ts, popup-a11y.ts, popup-motion.ts, warn-once.ts}styles/
- shadcn CLI
npx shadcn@latest add https://lokendra-builds.github.io/sheenui/r/radial-bar-chart.jsonRegistry item: radial-bar-chart. The styles need the Tailwind v4 glass UI setup.- Packages
pnpm add @base-ui/react clsx motion tailwind-merge
Next.js: samples here pass functions (formatters, seriesLegend, a dashboard's load), so put them in a file that starts with "use client".
Three-quarter arcs
The default. Each ring's name and value sit in the open quarter, right where the ring starts: no legend to cross-reference.
Quarterly goals
Share of target reached, Q3
- New ARR82%
- Expansion64%
- Retention91%
- Pipeline47%
import { RadialBarChart } from "@/components/sheenui/charts/radial-bar-chart";
// Package build (after the first npm release, or a packed tarball): import { RadialBarChart } from "@sheenui/theme";
<RadialBarChart
data={[
{ label: "New ARR", value: 82, color: 1 },
{ label: "Expansion", value: 64, color: 2 },
{ label: "Retention", value: 91, color: 3 },
{ label: "Pipeline", value: 47, color: 7 },
]}
centerValue="71%"
centerLabel="Overall"
aria-label="Quarterly goals, percent reached"
/>Full rings with a legend
variant="ring" closes the rings (a 2px gap marks the seam) and lists the measures beside them. Each item can bring its own max; values past it fill the ring and still print in full.
Activity
Today
- Steps8,240
- Active minutes42
- Calories380
import { RadialBarChart } from "@/components/sheenui/charts/radial-bar-chart";
// Package build (after the first npm release, or a packed tarball): import { RadialBarChart } from "@sheenui/theme";
<RadialBarChart
variant="ring"
display="value"
diameter={220}
data={[
{ label: "Steps", value: 8240, max: 10000, color: 1 },
{ label: "Active minutes", value: 42, max: 60, color: 3 },
{ label: "Calories", value: 380, max: 500, color: 2 },
]}
centerValue="76%"
centerLabel="Daily goals"
aria-label="Activity against daily goals"
/>Props
RadialBarChartLabels keys and English defaults (7)
RadialBarTable
Keyboard
Accessibility
- The figure takes focus as one stop and is named by its aria-label, the chart title. A one-line hint explains the keys, and a ChartCard table view is linked through aria-details. Values are announced politely, once per move. Each move announces the measure, its value and its share.
- For a non-visual reading, give ChartCard's table prop a RadialBarTable; the Chart / Table tabs then expose each value as plain table cells.
- With reduced motion on, the rings start at their final lengths and a data change jumps straight to the new state.
All exports on this page
RadialBarChart— Concentric arcs or rings, one per measure, each filled to its share of a maximum.RadialBarTable— The chart's table view: every measure with its value, goal and share.defaultRadialBarChartLabels— The built-in English strings of RadialBarChart; spread it into your own labels and change what you need.
When to use the radial bar chart
- Use it as progress rings for quarterly goals, where two to five measures each show progress against a target as concentric rings with the share printed right where each ring starts.
- It fits an activity-ring style summary, such as move, exercise and stand today versus yesterday, with variant ring closing the rings and a legend beside them.
- It works when items have different targets, since each datum can bring its own max and values past it still fill the ring and print in full.
- Skip it when there is only one measure or you need a single value on a dial; use GaugeChart or RadialProgress, and use BarChart for more than five items or exact comparison.
- Pair it with ChartCard for the title, RadialBarTable for the Chart / Table tabs, and centerValue and centerLabel to show an overall figure while no ring is active.
Frequently asked questions
Related pages
48 charts pages in all: browse them on Charts.
By Lokendra Singh Rathore (GitHub, opens in a new tab). Published , updated .