# Marimekko

> Use a marimekko to show two shares at once: each column's width is its share of the total, and its stack is its own mix.

- Data type: Shares of a total (`parts`)
- Pro · not released yet: its code is not available; try it on its page, or use a free chart of the same data type (`parts`)
- Example: **Asia makes almost 60% of the world's electricity, half of it from coal** (Electricity generation by continent and source, 2024; width is TWh generated, height is the mix)
- How to read it: Each column is a continent, as wide as its share of the world's electricity; its blocks show where that electricity came from.
- Phone: Adapts to mobile (Draws its own phone layout below 520px) · Video formats: 16:9, 9:16 (best 9:16)

## Use it when
- parts split two ways (who and what)
- the groups differ a lot in size and the mix inside them matters
- 2 to 8 columns and up to six parts

## Avoid it when
- many tiny columns (they become slivers)
- readers need exact values (area is hard to compare)
- the groups are about the same size (use a 100% stacked bar)
- more than six parts (the tail folds into Other)

## Fields (data.json)
- `year` (year): the year of the figures, named in each block's note
- `continents[].continent` (category): the column's name (a continent); 2 to 8 columns
- `continents[].Coal` (number, unit "TWh", format count): one block per number key in every column, in the data's order; up to 6 parts (more fold into Other), any names. Here: electricity from coal, TWh
- `continents[].Gas` (number, unit "TWh", format count): electricity from gas, TWh
- `continents[].Hydro` (number, unit "TWh", format count): electricity from hydropower, TWh
- `continents[].Nuclear` (number, unit "TWh", format count): electricity from nuclear, TWh
- `continents[].Wind and solar` (number, unit "TWh", format count): electricity from wind and solar, TWh
- `continents[].Other` (number, unit "TWh", format count): oil, bioenergy and other renewables, TWh

Units are the example's: with your own data, set each number field's `unit` and `format` (percent, count, decimal, currency, compact) in the meta you pass to mount, or `chartreuse render --unit field=text --format field=count`. Scales and labels follow your data.

## Interactions, motion, sound
- hover or tap a block to read its TWh and both shares
- hover a source in the key to light it in every continent
- Motion: Columns fill from the bottom one after another, Asia first, so the width difference registers before the mix.
- Sound: A soft pop on hover, pitched by source. Quiet while it draws and between steps; mute it from its card. (sound is off until the viewer turns it on)

## Example spec
```json
{
  "chart": "marimekko",
  "title": "Asia makes almost 60% of the world's electricity, half of it from coal",
  "subtitle": "Electricity generation by continent and source, 2024; width is TWh generated, height is the mix",
  "data": "/charts/marimekko.data.json"
}
```

## Source
Energy dataset (electricity generation by source), Our World in Data (Ember, Energy Institute Statistical Review of World Energy) (CC BY 4.0), retrieved 2026-12-01: https://github.com/owid/energy-data

Note: Continents are Our World in Data's aggregates; Other is oil, bioenergy and other renewables.

Live: /charts/marimekko · Manifest: /charts/marimekko.json · Tags: marimekko, mosaic, mekko, variable width, part to whole, energy, electricity, coal, renewables
