Charts
RadarChart
Spider/polygon chart โ perfect for comparing multiple metrics or profiles side by side.
Quick Preview
Installation
npm install recharts
// Copy component fromsrc/components/charts/RadarChart.tsx
Usage
import RadarChart from '@/components/charts/RadarChart'<RadarChartdata={data}angleKey="skill"series={[{ key: 'alice', label: 'Alice', color: '#F45A5A' },]}height={300}/>
Examples
Quarterly Performance โ 3 Series
Single Series โ 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* | Record<string, string | number>[] | - | Data points array |
angleKey* | string | - | Key for axis labels |
series* | RadarSeries[] | - | Series definitions |
height | number | 320 | Chart height |
showLegend | boolean | true | Show legend |