Calm motion: animations on this site only fade, with no movement
Marimekko
Bars whose width and height both show a share
Shows two levels of shares in one picture. The width of a column is its share of all, and the height of each part is its share of the column. For one level of shares, use the waffle.
Basic
| Column | Podcast apps | YouTube | Other | Share of all |
|---|---|---|---|---|
| Java | 62k (54%) | 41k (36%) | 12k (10%) | 62% |
| Sumatra | 18k (47%) | 16k (42%) | 4k (11%) | 20% |
| Bali | 9k (56%) | 5k (31%) | 2k (13%) | 9% |
| Sulawesi | 7k (41%) | 8k (47%) | 2k (12%) | 9% |
datais a list of columns, with a value for each series.xnames the field with the name of the column.seriestakes the same series as the bar chart. The first series is the bottom part. A legend names the series.- If a part has room, it shows its share as text. A hover on a part shows its value and share.
heightsets the height in pixels (default 280), andformatsets the text of a value.- For screen readers, the chart is a table with each value, its share, and the share of each column.
labelnames the table. Change the words withlabelsor a label pack:columnandshare.
Usage
ts
import { BlessMarimekko } from "blessing-ui";API
Props
| Name | Type | Default | Description |
|---|---|---|---|
data* | BlessChartRow[] | — | one column for each row, with a value for each series |
x* | string | — | the field with the name of the column |
series* | BlessChartSeries[] | — | the parts of each column, from the bottom up |
height | number | 280 | |
format | ((v: number) => string) | — | |
label | string | "Chart" | names the chart and its table for screen readers |
labels | Partial<{ column: string; share: string; }> | — |