Radar Chart
A radar chart recipe - Recharts drawn with Appica UI tokens, for comparing 1 or 2 profiles across several measures.
A radar chart draws a profile across 5 to 8 measures that share a scale. With 2 profiles on the same axes it shows where they differ. Like every chart here it is a recipe: Recharts draws it and the chart layer themes it. Each example below is a complete file to paste and adapt.
Installation
Recharts is the only extra dependency, with react-is at the same version as react:
pnpm add recharts react-isThe examples import the chart layer from @/components/chart. If your project doesn't have it yet, copy it from the Charts page first.
Examples
Default
1 profile in the first series color, filled with its -soft tint. The measures sit on a PolarAngleAxis, and the PolarGrid takes its color from the theme.
Multiple
2 profiles on the same axes, each a Radar with the next series color and its own tint. Stop at 2 or 3: more overlapping shapes hide each other, and a grouped bar chart compares them better.
Accessibility
- Pass
aria-labelto the chart with what it shows ("Team skill scores out of 100"). It becomes the accessible name of the SVG. - The chart takes focus, and the arrow keys move the tooltip from measure to measure.
- A chart with 2 profiles has a
Legend, and the tooltip names both, so color is never the only cue. - Nothing animates under reduced motion.