Calm motion: animations on this site only fade, with no movement
Radar
Spider chart: one shape per series
A spider chart: several measures of one thing on spokes around a center, with one shape for each series. Use it to compare a few items on the same five or six measures. For one measure over time, use Sparkline or Chart.
Basic
axesnames the spokes (three or more). Each series has one value for each axis, in the same order.maxis the value at the edge. Without it, the biggest value sets the edge. A value abovemaxstays at the edge. A missing value counts as 0.ringssets the number of rings between the center and the edge (default 4).sizesets the width and height in px, and the chart scales down inside a small container.- Series use
--bless-color-chart-1..5in order, or thecolorof the series. With two or more series, a legend names them. - The
aria-labellists every value, for example "Tram: Speed 3, Reach 4". Give the numbers as text or a Table too when the exact values matter.
Usage
ts
import { BlessRadar } from "blessing-ui";API
Props
| Name | Type | Default | Description |
|---|---|---|---|
axes* | string[] | — | the names around the edge. Three or more. |
series* | BlessRadarSeries[] | — | |
max | number | — | the value at the edge. Default: the biggest value. |
rings | number | 4 | rings between the center and the edge |
size | number | 320 | width and height in px; the chart scales down with its container |
format | ((v: number) => string) | — | text for one value |
label | string | "Radar chart" | names the chart for screen readers |