All charts / Groups within groups

Animated charts for groups within groups

Categories that nest inside other categories. Chartreuse has 10 chart types for this data: 5 free (MIT) and 5 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

Categories that nest inside other categories. A typical table for it, from the circle packing example:

  • country (place): the country
  • continent (category): the group
  • people (number): population
  • 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.

  • Circle packing · Free (MIT). Use circle packing to show a hierarchy by size as circles inside circles: groups hold their members, each circle's area its value. Use it when a hierarchy where the groups and the few biggest members are the story.
  • Collapsible tree · Free (MIT). Use a collapsible tree when a hierarchy is too big to show at once: start with the top levels and let readers open only the branches they care about. Use it when a hierarchy with hundreds or thousands of leaves.
  • Dendrogram · Free (MIT). Use a dendrogram to show a cluster tree: which items are most alike, in what order groups merge, and how far apart they are when they do. Use it when items were clustered and the merge order and distances matter.
  • Icicle · Free (MIT). Use an icicle to show a hierarchy as stacked rectangles by level: each level is a column, each box as tall as its share; click to zoom. Use it when three or more levels of a hierarchy.
  • Sunburst · Free (MIT). Use a sunburst to show nested shares as rings: the inner ring is the groups, the outer ring their members; click to zoom into one group. Use it when two or three levels of a hierarchy of shares.

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.

  • Indented tree · Pro · not released yet. Use an indented tree to show a hierarchy as an outline people can scan and open, with a value bar on every row. Use it when a hierarchy with long names that people read like a list.
  • Nested treemap · Pro · not released yet. Use a nested treemap to show a two-level hierarchy by size: groups as bordered boxes, their members as tiles inside. Use it when two levels (groups and members) of one total.
  • Org chart · Pro · not released yet. Use an org chart to show who sits under whom as boxes joined top-down, with one small measure per box when it helps. Use it when reporting lines or containment, with 3 to 30 boxes.
  • Radial tree · Pro · not released yet. Use a radial tree to fit a wide hierarchy (dozens to a few hundred leaves) into a square, with the root in the centre and the leaves around the rim. Use it when a tree with many leaves that would be too tall drawn top-down.
  • Zoomable pack · Pro · not released yet. Use a zoomable circle pack to show a two- or three-level hierarchy of sizes, with click to zoom so the small members stay readable. Use it when a hierarchy of sizes with many small members.

Use one

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

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

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

Other kinds of data