All charts / Shares of a total

Animated charts for shares of a total

Counts or percentages that add up to one whole. Chartreuse has 23 chart types for this data: 6 free (MIT) and 17 in Pro (not released yet). Each is live with real public data, moves once when it scrolls into view, and can play sound if the viewer turns it on.

What this data looks like

Counts or percentages that add up to one whole. A typical table for it, from the 100% stacked bar example:

  • fate (category): what happened to the plastic
  • tonnes (number): plastic waste, tonnes
  • year (year): the year measured

Not sure? Describe your data on the search page, or let an agent call suggest_charts on the MCP server with a few rows.

Free charts (MIT)

Start here: these are the forms every chart library has, and they install with no account.

  • 100% stacked bar · Free (MIT). Use a 100% stacked bar to split one total into a few shares, read left to right like a ruler. Use it when one total splits into 2 to 6 parts.
  • Donut with one highlight · Free (MIT). Use a donut with one highlight when a whole has at most five parts and one of them is the story: pull it out, grey the rest. Use it when two to five parts of one whole.
  • Progress ring · Free (MIT). Use a progress ring to show one share of one whole, big and at a glance, with the number in the centre. Use it when one share is the whole story (a KPI, a goal, a completion).
  • Stacked bars · Free (MIT). Use stacked bars to compare totals across items and see what each total is made of, with a switch to compare the mix instead. Use it when a few items (5 to 15) each split into the same 2 to 5 parts.
  • Treemap · Free (MIT). Use a treemap to show many parts of one total at once: each rectangle's area is its value, shaded by group. Use it when many parts (10 to 100) of one total.
  • Waffle · Free (MIT). Use a waffle to show shares as countable squares: 100 squares, each one per cent of the whole. Use it when a few shares of one whole (2 to 6).

Pro charts

Pick one when it fits the story better than a free form: a race, annotations, steps, physics or a playful shape. Every one can be tried on its page first.

  • Balance scale · Pro · not released yet. Use a balance scale to compare two totals that add up to one whole: the beam tips towards the heavier side, and stepping through years shows when it tips the other way. Use it when exactly two sides that make up one whole.
  • Icon array · Pro · not released yet. Use an icon array to turn a percentage into people: 100 figures with the share filled, read as 'so many in 100'. Use it when one share that readers should feel as people (risks, odds, rates).
  • Isotype rows · Pro · not released yet. Use isotype rows to make counts countable: each pictogram stands for a fixed amount, repeated in rows, never stretched. Use it when counts of people or things readers can picture.
  • Kingdom map · Pro · not released yet. Use a kingdom map to turn shares of one whole into territories on an invented continent, so the biggest share reads as the biggest realm. Use it when shares of one whole, 3 to 7 parts.
  • Magnet clusters · Pro · not released yet. Use magnet clusters to sort items into groups you can see: each item is a dot pulled to its group's magnet, and switching what a dot weighs re-sorts the story. Use it when sorting 30 to 300 items into 2 to 6 groups.
  • Marimekko · Pro · not released yet. 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. Use it when parts split two ways (who and what).
  • Nested squares · Pro · not released yet. Use nested squares when each part is a slice of the one around it: a chain of ever-smaller wholes, zoomed one step at a time. Use it when a chain of wholes, each a part of the last (a funnel of scale).
  • One dot per item · Pro · not released yet. Use one dot per item when the whole is a countable set: every dot is a real thing, and regrouping them shows the shares. Use it when the whole is a set of 20 to 500 real items.
  • Parliament · Pro · not released yet. Use a parliament chart to show seats in a chamber: one dot per seat in a hemicycle, coloured by party, with the majority line marked. Use it when seats in an elected body.
  • Physics drop · Pro · not released yet. Use a physics drop to count things into groups: one ball per item falls into its group's bin, so the piles are the totals and every ball can be read. Use it when counting individual items into 2 to 8 groups.
  • Pile-up · Pro · not released yet. Use a pile-up to make one group's dominance physical: blocks fall into a pile per group and settle, so one heap towering over the rest tells the story before any number is read. Use it when one or two groups dwarf the rest.
  • Receipt · Pro · not released yet. Use a receipt to itemise a total line by line, the way a till does: every part listed with its amount, adding up to the bill. Use it when a total that people pay or owe, split into named items.
  • Reveal wipe · Pro · not released yet. Use a reveal wipe to hold back one answer behind a curtain, so readers pause and guess before the real value appears. Use it when the answer is a single surprising share or number.
  • Sand jar · Pro · not released yet. Use sand jars to show shares or levels that fill up over time: each jar fills with grains to its value, and stepping through years pours more in. Use it when a few items each fill towards a shared ceiling (a share, a quota, a target).
  • Share or count · Pro · not released yet. Use a share-or-count switch when the same parts tell two stories: raw counts show the scale, % of total shows who dominates. Use it when totals differ a lot between groups or years, so counts hide the mix.
  • Spine plot · Pro · not released yet. Use a spine plot to show two-way shares: each group is one 100% bar, as wide as the group is big, split by the outcome. Use it when an outcome rate compared across groups of different sizes.
  • Voronoi treemap · Pro · not released yet. Use a Voronoi treemap to show nested shares as organic cells inside a circle: each cell's area is its value, grouped by colour. Use it when a playful, organic picture of shares with one level of grouping.

Use one

Install it as source you own, then pass your own rows with the same fields.

npx chartreuse add stacked-100
import "./chartreuse/chartreuse.css";
import { mount } from "./chartreuse/lib/mount";
import render from "./chartreuse/charts/stacked-100/index";
import meta from "./chartreuse/charts/stacked-100/meta.json";
mount(document.getElementById("chart"), render, { meta, data: yourRows });

For a video: npx chartreuse render stacked-100 --data rows.csv --format mp4 --size 1080x1920. See animated charts for video.

Other kinds of data