RadarChart

A radar chart for comparing multiple entries across several shared dimensions.

Installation

npx dafink-ui add radar-chart

Requires: recharts

Demo

Props

NameTypeDefaultDescription
dataChartDataPoint[]-Array of data objects.
xKeystring-Key in each data object used as the category label around the radar.
seriesChartSeries[]-Polygons to render. Each entry has key, label, and optional color.
heightnumber240Chart height in px.
showLegendbooleantrueWhether to show the legend.
showGridbooleantrueWhether to show the background grid.
classNamestring""Extra classes applied to the container.

Accessibility

RadarChart uses the same accessibility layer as the rest of the polar chart family: Tab focuses the SVG, ArrowLeft/ArrowRight step a shared tooltip across the category (angle) axis, and Enter pins it; the wrapping div carries role="img" and aria-label="Radar chart". Each series' polygon differs by stroke/fill color and legend label, not color alone; the legend itself renders static labels only.