Calm motion: animations on this site only fade, with no movement
Parallel coordinates
Each item as a line across several axes
Compares a few items on many measures at once, such as plays, length, and rating. Each axis is a measure, and each line is an item. Lines that cross show a trade-off. For two measures only, use the scatter chart.
Basic
| Item | Plays | Length | Finish rate | Rating |
|---|---|---|---|---|
| Morning Brief | 51k | 24 min | 81% | 4.6 |
| Deep Dive | 33k | 67 min | 58% | 4.8 |
| Weekend Chat | 18k | 44 min | 49% | 4.1 |
| Tech Corner | 31k | 30 min | 72% | 4.4 |
| Local News | 15k | 12 min | 88% | 3.9 |
datais a list of rows, with a value for each axis and an optionalcolor.namenames the field with the name of a row.axesis a list of axes from left to right. Each axis has akey, alabel, and an optionalformat.- Each axis has its own scale, from a round number under its lowest value to a round number over its highest. The two ends show at the top and the bottom of the axis.
- A hover on a line makes the others faint. A legend under the chart names the lines.
heightsets the height in pixels (default 280). - For screen readers, the chart is a table with a row for each item.
labelnames the table. Change the name of the first column withlabelsor a label pack:item.
Usage
ts
import { BlessParallelCoordinates } from "blessing-ui";API
Props
| Name | Type | Default | Description |
|---|---|---|---|
data* | BlessChartRow[] | — | one line for each row |
name* | string | — | the field with the name of a row |
axes* | BlessParallelAxis[] | — | the axes, left to right; each has its own scale |
height | number | 280 | |
label | string | "Chart" | names the chart and its table for screen readers |
labels | Partial<{ item: string; }> | — |