A React radar chart for comparing multivariate web data with fill, dots, and multiple series.
RadarChart is a subpath-only import (@heroui-pro/react/radar-chart) because it depends on the optional recharts peer. It is not exported from the package root, so SSR apps that don't use it never need recharts installed.
import {RadarChart} from "@heroui-pro/react/radar-chart";
<RadarChart data={data}>
<RadarChart.Grid /> {/* Optional */}
<RadarChart.AngleAxis dataKey="category" /> {/* Optional */}
<RadarChart.RadiusAxis /> {/* Optional */}
<RadarChart.Radar dataKey="value" />
<RadarChart.Tooltip content={<RadarChart.TooltipContent />} /> {/* Optional */}
</RadarChart>;HeroUI follows the BEM methodology to ensure component variants and states are reusable and easy to customize.
The Radar Chart component uses these CSS classes:
.radar-chart: Root container wrapping ResponsiveContainer and the Recharts chart.The following CSS rules target Recharts internal class names to apply HeroUI design tokens automatically:
.radar-chart .recharts-polar-angle-axis-tick-value: Angle axis tick labels. 11px muted text..radar-chart .recharts-polar-radius-axis-tick-value: Radius axis tick labels. 10px muted text..radar-chart .recharts-polar-grid-concentric-polygon / .recharts-polar-grid-concentric-circle: Concentric grid shapes. Muted stroke at 0.2 opacity..radar-chart .recharts-polar-grid-angle line: Angle grid lines. Muted stroke at 0.2 opacity..radar-chart .recharts-tooltip-cursor: Tooltip cursor. Hidden for radar charts.The root wrapper. Renders a ResponsiveContainer + Recharts RadarChart with HeroUI CSS theming applied automatically.
| Prop | Type | Default | Description |
|---|---|---|---|
data | Record<string, number | string>[] | - | Chart data: array of objects with a category key and numeric series fields. |
height | number | 300 | Chart height in pixels. |
width | number | `${number}%` | "100%" | Chart width in pixels or percentage string. |
children | ReactNode | - | Recharts child components (RadarChart.Radar, RadarChart.Grid, etc.). |
Also supports all native div HTML attributes.
Re-exported Recharts Radar component. Follows the Recharts Radar API.
Re-exported Recharts PolarGrid component. Follows the Recharts PolarGrid API.
Re-exported Recharts PolarAngleAxis component. Follows the Recharts PolarAngleAxis API.
Re-exported Recharts PolarRadiusAxis component. Follows the Recharts PolarRadiusAxis API.
Re-exported Recharts Tooltip component. Follows the Recharts Tooltip API. Use with RadarChart.TooltipContent for styled tooltips.
Pre-built tooltip renderer for Recharts. Pass as the content prop of RadarChart.Tooltip. See ChartTooltip for full props.
Resources