Calm motion: animations on this site only fade, with no movement
Small multiples
A grid of small line charts on one scale
Shows many series at a glance, one small chart for each, so that no lines cross. All the charts share one scale, so their heights compare. For a few series in one chart, use the line chart.
Basic
All charts share one scale: 0k to 100k
| Item | W1 | W2 | W3 | W4 | W5 | W6 | W7 | W8 | W9 | W10 | W11 | W12 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Morning Brief | 42k | 44k | 43k | 47k | 49k | 48k | 51k | 50k | 53k | 52k | 55k | 57k |
| Deep Dive | 38k | 36k | 37k | 35k | 34k | 36k | 33k | 34k | 32k | 33k | 31k | 30k |
| Weekend Chat | 21k | 22k | 25k | 24k | 28k | 31k | 29k | 33k | 35k | 34k | 38k | 41k |
| Tech Corner | 18k | 19k | 18k | 20k | 19k | 21k | 22k | 21k | 23k | 22k | 24k | 23k |
| Local News | 12k | 12k | 13k | 12k | 14k | 13k | 13k | 14k | 15k | 14k | 15k | 15k |
| Sport Talk | 9k | 14k | 8k | 16k | 10k | 18k | 9k | 17k | 11k | 19k | 10k | 20k |
| Book Club | 7k | 7k | 8k | 8k | 8k | 9k | 9k | 10k | 10k | 11k | 11k | 12k |
| Music Notes | 15k | 14k | 12k | 11k | 10k | 9k | 9k | 8k | 7k | 7k | 6k | 6k |
seriesis a list of series. Each series has alabel, a list ofvalues, and an optionalcolor.- Each cell shows the name, the last value, and a sparkline with the area under it. A line above the grid gives the shared scale, from zero or the lowest value to a round number over the highest.
stepsnames the steps for the table, such as the weeks.heightsets the height of each small chart in pixels (default 56), andformatsets the text of a value.- The cells fill the width in columns of about 10rem.
- For screen readers, the grid is hidden and a table holds every value.
labelnames the table. Change the words withlabelsor a label pack:item, andscale(a function of the two ends).
Usage
ts
import { BlessSmallMultiples } from "blessing-ui";API
Props
| Name | Type | Default | Description |
|---|---|---|---|
series* | BlessMultiple[] | — | |
steps | string[] | — | the names of the steps, for the table; default: 1, 2, 3 … |
height | number | 56 | the height of each small chart in pixels |
format | ((v: number) => string) | — | |
label | string | "Chart" | names the chart and its table for screen readers |
labels | Partial<{ item: string; scale: (lo: string, hi: string) => string; }> | — |