Skip to content
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
Shows on four measures
ItemPlaysLengthFinish rateRating
Morning Brief51k24 min81%4.6
Deep Dive33k67 min58%4.8
Weekend Chat18k44 min49%4.1
Tech Corner31k30 min72%4.4
Local News15k12 min88%3.9
  • data is a list of rows, with a value for each axis and an optional color. name names the field with the name of a row.
  • axes is a list of axes from left to right. Each axis has a key, a label, and an optional format.
  • 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. height sets the height in pixels (default 280).
  • For screen readers, the chart is a table with a row for each item. label names the table. Change the name of the first column with labels or a label pack: item.

Usage ​

ts
import { BlessParallelCoordinates } from "blessing-ui";

API ​

Props

NameTypeDefaultDescription
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
heightnumber280
labelstring"Chart"names the chart and its table for screen readers
labelsPartial<{ item: string; }>—

Released under the MIT License. Character names and artwork belong to their owners.