Charts
RadialBarChart
Circular stacked bars โ compare multiple metrics in a compact radial layout.
Quick Preview
Installation
npm install recharts
// Copy component fromsrc/components/charts/RadialBarChart.tsx
Usage
import RadialBarChartComponent from '@/components/charts/RadialBarChart'<RadialBarChartComponentdata={[{ name: 'Engineering', value: 72 },{ name: 'Marketing', value: 63 },]}height={320}/>
Examples
Quarterly Goals โ Custom Colors
Tight Ring โ No Legend
Prompt Preview
Copy a prompt that recreates this UI
Paste this into your AI coding assistant to generate code that closely matches the reference, including color, size, shape, typography, spacing, and polish.
Copy-ready AI prompt
Starts from the current visual reference and project constraints.
Tweak only product-specific copy or data after the first generation pass.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
data* | RadialBarItem[] | - | Array of {name, value, fill?} |
height | number | 320 | Chart height |
innerRadius | number | 20 | Inner ring radius |
outerRadius | number | 120 | Outer ring radius |
showLegend | boolean | true | Show legend |