Skip to content
SENVENLI UI

Radar chart

A few items scored on the same axes, as overlapping polygons.
Two profiles
import { RadarChart } from "@senvenli/react/charts";

Examples

One profile

A single shape, for strengths and gaps at a glance.

Guidelines

When to use it

  • Comparing two or three profiles on five to eight measures.

Use something else when

  • Precise comparison matters more than shape. Bar chart

Accessibility

Built in

  • A "Show as table" button shows the same data as a table, which screen readers get by default.

You provide

  • A title that says what the figure is.

API reference

RadarChart

title
string

What the chart shows, over it; leave it out when a card or a heading already says so.

aria-label
string

Names the chart when it has no visible title (a card's heading already says what it shows).

period
string
isLoading
boolean
emptyState
React.ReactNode

Shown instead of the plot when there is no data: an EmptyState size="small" or text; "No data" by default.

height
numberDefault 280
dataRequired
readonly T[]

One row per dimension (five to eight).

dimensionRequired
keyof T & string

The dimension's name key.

categoriesRequired
readonly (keyof T & string)[]

One or two profiles: the first is the main one, a second is the comparison.

labels
Readonly<Partial<Record<string, string>>>
maxRequired
number

The shared scale's top.

valueFormatter
ChartValueFormatterDefault plain