Chart Radial Bar

Radial bar charts render each value as a concentric arc. Built as a self-contained SVG component with gradient bars, a glow, background tracks, and inline labels.

Labeled

Concentric bars with inline labels, gradient fills, and a legend.

Dark previewReplay previewOpen in new tab

Usage

Import the parts you need from the component's folder.

ts
import { ChartRadialBar } from "@/components/ui/chart";

API Reference

ChartRadialBar

PropTypeDefaultDescription
dataRecord<string, any>[]—One row per ring.
configChartConfig—Map of name → { label, color }.
valueKeystring"value"Row key for the bar value.
nameKeystring"name"Row key matched against config.
innerRadiusnumber35Inner radius of the band.
outerRadiusnumber110Outer radius of the band.
barSizenumber22Thickness of each bar.
maxnumber100Value mapped to a full sweep.
gradientbooleantrueFill bars with a gradient.
glowbooleantrueApply a glow filter.
backgroundbooleantrueRender background tracks.
showLabelsbooleantrueRender inline labels.
legendbooleantrueRender a legend below.