All charts / Movement between stages
Animated charts for movement between stages
Things going from one state, place or step to the next. Chartreuse has 16 chart types for this data: 5 free (MIT) and 11 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
Things going from one state, place or step to the next. A typical table for it, from the adjacency matrix example:
finalists(category): the 25 countries in the grand final (columns)televoters, juryVoters(category): the countries voting (rows); the televote adds the Rest of the Worldtele, jury(number): matrix[row][column]: points given, 0 to 12totals(number): each finalist's jury, televote and total points
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.
- Adjacency matrix · Free (MIT). Use an adjacency matrix to show who links to whom in a dense network: one row and one column per node, a filled cell for each link, and reordering to reveal clusters. Takes the example's Eurovision votes or any { rows, cols, layers: [{ name, matrix }] }, with a button per layer. Use it when the network is dense, so lines would tangle.
- Chord · Free (MIT). Use a chord diagram to show flows between a handful of groups in both directions, around a circle. Use it when flows go both ways between 3 to 8 groups.
- Force network · Free (MIT). Use a force network to show who connects to whom when the shape of the web matters more than exact positions; readers can drag it apart. Takes any { nodes: [{ name, group?, <number>? }], links: [[i, j] or { source, target }] }: links count each node's degree, circles are sized by any number field, and nodes with no links get a dashed ring. Use it when the data is a set of links with no natural layout.
- Funnel · Free (MIT). Use a funnel to show how many survive each step of a process, and where most of them drop out. Use it when every item passes through the same ordered stages.
- Sankey · Free (MIT). Use a Sankey to show how a total splits and merges across two or more stages, with each ribbon's width as its volume. Takes either the example's countries-by-source table or any process flow as { nodes?, links: [{ source, target, value }] }, with 2 to 5 stages found from the links. Use it when one total splits into parts and those parts regroup at a later stage.
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.
- Alluvial · Pro · not released yet. Use an alluvial to show how the same items move between categories across a few steps: who stayed, who switched and where to. Takes the example's three-year table or any tracked items as { steps: [...], items: [{ name, value?, path: [category per step] }] }, with 2 to 5 steps. Use it when the same items are classified again at each step.
- Arc diagram · Pro · not released yet. Use an arc diagram to show links between items laid out on one line, when the order of the items carries meaning. Use it when items have a natural order or ranking along one line.
- Edge bundling · Pro · not released yet. Use hierarchical edge bundling to show many links between items that sit in a hierarchy: items go round a circle by group, and links bend along the tree so they gather into bundles. Use it when items belong to a hierarchy (packages, departments, regions) and also link across it.
- Flow bars · Pro · not released yet. Use flow bars to show what comes in and what goes out at each stage as a pair of bars, so the net change is the gap between them. Use it when each stage has an inflow and an outflow.
- Hive plot · Pro · not released yet. Use a hive plot to show a network whose nodes fall into a few types: each type gets an axis, so the layout is fixed and comparable rather than a hairball. Use it when nodes have a type or role you can sort them by.
- Metro map · Pro · not released yet. Use a metro map to show journeys through stages: each item is a coloured line, each stage a station, and where two lines meet is an interchange. Use it when items pass through the same ordered stages.
- Particle flow · Pro · not released yet. Use a particle flow to show units moving between states, so readers see both the routes and how many take each one. Use it when things move through a small set of states and you want the motion felt.
- Plumbing · Pro · not released yet. Use a plumbing diagram to show one flow that loses volume along the way, with each leak drawn where and how the value escapes. Use it when one total loses parts in a sequence of steps.
- River delta · Pro · not released yet. Use a river delta to show one total splitting into branches and sub-branches: each channel's width is its share of the flow. Use it when one total that splits into 2 to 6 parts, some of which split again.
- State transitions · Pro · not released yet. Use a state-transition diagram to show a transition matrix as arrows: how likely each state is to lead to each other state next. Use it when you have a transition matrix or a Markov chain.
- Two-column links · Pro · not released yet. Use a two-column link chart (a bipartite graph) to show which items on the left connect to which items on the right, and how strongly. Takes the example's crops-and-producers table or any two-sided links as { left: [{ name, total? }], links: [{ left, right, value }] }. Use it when there are two kinds of thing and links only run between the kinds.
Use one
Install it as source you own, then pass your own rows with the same fields.
npx chartreuse add adjacency-matrix
import "./chartreuse/chartreuse.css";
import { mount } from "./chartreuse/lib/mount";
import render from "./chartreuse/charts/adjacency-matrix/index";
import meta from "./chartreuse/charts/adjacency-matrix/meta.json";
mount(document.getElementById("chart"), render, { meta, data: yourRows });
For a video: npx chartreuse render adjacency-matrix --data rows.csv --format mp4 --size 1080x1920. See animated charts for video.
Other kinds of data
- Values per item: A number for each item, and you want to see which is bigger and by how much.
- Shares of a total: Counts or percentages that add up to one whole.
- Values over time: Years, months or dates, and you want the trend, the cycle or the change.
- Several measures per item: Two or more numbers for each item, and you want to see how they move together.
- Many values of one measure: Lots of readings, and you want the range, the typical value or the odds.
- Groups within groups: Categories that nest inside other categories.
- Values by place: Each value belongs to a country, region or point on a map.
- One very big or small number: A size or amount to make people feel how big it is.
- Words and text: Your data is words, quotes or sentences.