Skip to content
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
Listeners by island and app
ColumnPodcast appsYouTubeOtherShare of all
Java62k (54%) 41k (36%) 12k (10%) 62%
Sumatra18k (47%) 16k (42%) 4k (11%) 20%
Bali9k (56%) 5k (31%) 2k (13%) 9%
Sulawesi7k (41%) 8k (47%) 2k (12%) 9%
  • data is a list of columns, with a value for each series. x names the field with the name of the column.
  • series takes 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.
  • height sets the height in pixels (default 280), and format sets the text of a value.
  • For screen readers, the chart is a table with each value, its share, and the share of each column. label names the table. Change the words with labels or a label pack: column and share.

Usage ​

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

API ​

Props

NameTypeDefaultDescription
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
heightnumber280
format((v: number) => string)—
labelstring"Chart"names the chart and its table for screen readers
labelsPartial<{ column: string; share: string; }>—

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