Skip to content
  • System
  • Light
  • Dark
  • High contrast

RadarChart

POUR principle scores

Radar chart, 4 points. Perceivable to Robust. Values from 65 to 90.

PerceivableOperableUnderstandableRobust
Show data table
Data for POUR principle scores
AxisCurrent
Perceivable80
Operable65
Understandable90
Robust70
import { RadarChart } from '@eekodigital/raster';

<RadarChart
  axes={['Perceivable', 'Operable', 'Understandable', 'Robust']}
  series={[{ name: 'Current', data: [80, 65, 90, 70] }]}
  title="POUR principle scores"
/>

Compare current state against a target or another audit.

Current vs target POUR scores

Radar chart, 2 series, 8 points. Perceivable to Robust. Values from 65 to 100.

PerceivableOperableUnderstandableRobust
CurrentTarget
Show data table
Data for Current vs target POUR scores
AxisCurrentTarget
Perceivable80100
Operable65100
Understandable90100
Robust70100
<RadarChart
  axes={['Perceivable', 'Operable', 'Understandable', 'Robust']}
  series={[
    { name: 'Current', data: [80, 65, 90, 70], color: 'var(--demo-accent)' },
    { name: 'Target', data: [100, 100, 100, 100], color: 'var(--demo-good)' },
  ]}
  max={100}
  title="Current vs target"
/>
  • A role="figure" named by the visible title and described by a generated summary (chart type, series and point counts, range).
  • The SVG is a role="group" with aria-roledescription="chart"; no graphics-* roles.
  • Each series is a role="group"; each point is labelled {series}, {axis}: {value}, 2 of 5. With onSelect, selectedIndex or a click handler, marks are role="button" with aria-pressed; otherwise they’re static role="img".
  • Points use a different marker shape per series, and lines a different dash pattern in forced-colours mode.
  • A visible Show data table disclosure (a native <details>/<summary>, so it opens without JavaScript) reveals a real table captioned Data for {title}, with th scope headers and values run through formatValue.
  • Escape (inside the chart only) clears the selection and announces it in a polite live region; it doesn’t close a surrounding dialog.
  • Animations stop under prefers-reduced-motion. In forced-colours mode marks use system colours, told apart by dash pattern and marker shape.
Key Action
← / → Previous / next axis (wraps)
Home / End First / last axis
↑ / ↓ Previous / next series
Tab Leave the chart
Enter / Space Toggle selection (interactive marks)
Escape Hide the tooltip and clear selection

See the Accessibility guide for the shared structure, the labels prop and screen-reader testing.

PropTypeDescription
axesstring[]Required. Axis names.
seriesRadarSeries[]

Required. { name, data, color? }.

maxnumber

Default: data max

Value at the rim.
levelsnumber

Default: 4

Grid rings.
sizenumberFixed diameter in px. Omit to fill the container’s width (square).
formatValue(value: number) => string

Default: Intl.NumberFormat

Formats values in ticks, marks and the table. Defaults to Intl.NumberFormat for labels.locale.

onMarkClick(mark: { index: RadarPointIndex, value }) => void

Called when a mark is clicked (or activated with Enter/Space) with { index, value, datum }; index is what onSelect gives. Makes marks toggle buttons.

selectedIndex{ series, point } | nullControlled selection.
onSelect(index | null) => voidMakes points buttons.
titlestringRequired. Visible title: names the figure and captions the data table.
hideTitleboolean

Default: false

Hide the title visually. It still names the chart for assistive technology.
labelsChartLabelOverrides
Default: English

Generated strings and the number locale. See Accessibility.

dataTable“disclosure” | “visually-hidden” | “none”

Default: “disclosure”

How the data table is offered: behind a Show data table button, for screen readers only, or not at all, when you offer the data yourself. See Accessibility.

actionsReactNode

Shown on the same row as the Show data table button, such as download buttons.

refRef<HTMLDivElement>

The chart’s root element, e.g. for exportSVG and exportPNG from @eekodigital/raster/export. See Exporting charts.

classNamestringClass on the figure.