Skip to main content

Radial Chart

A radial/gauge chart component built using Recharts v3. Supports progress gauges, multi-value radial bars, and customizable angles.

Installation

$ npx shadcn@latest add @orecus/radial-chart
Registry:
@orecus/chart@orecus/color-utils@orecus/chart-utils@orecus/card

Component

Progress Gauge

Single value radial progress

Classic Style (No Glow)

Using colorStyle='default' and glow={false}

Props

PropTypeDefaultDescription
data*{ name: string; value: number }[]The data for the chart - each item becomes a radial bar
colorsThemeColor[]Colors for each bar
startAnglenumber90Start angle in degrees
endAnglenumber-270End angle in degrees
innerRadiusnumber | string"30%"Inner radius
outerRadiusnumber | string"100%"Outer radius
barSizenumber10Thickness of radial bars
showBackgroundbooleantrueShow background track
cornerRadiusnumber5Corner radius for bars
maxnumber100Maximum value for the scale
centerLabel{ value: string | number; label?: string }Center label for gauge-style display
cardPropsCardPropsProps to pass to the underlying Card component
tooltipSortByValuebooleanfalseSort tooltip items by value (descending)
legendIndicator'square' | 'circle' | 'line''square'Shape of legend indicators
legendShowValuesbooleanfalseShow values in legend
legendWrapbooleantrueAllow legend items to wrap to multiple lines