# Edge bundling

> 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.

- Data type: Movement between stages (`flow`)
- Pro · not released yet: its code is not available; try it on its page, or use a free chart of the same data type (`flow`)
- Example: **In the Flare toolkit, 39 classes import Transitioner, more than any other** (Imports between the 220 classes of Flare, an ActionScript visualisation library, grouped by package)
- How to read it: Each dot on the ring is a class, grouped by package; each curve is one import, bent towards the package tree so related imports bundle together.
- Phone: Not recommended for mobile (2 labels overlap on a phone) · Video formats: none passed; closest 16:9

## Use it when
- items belong to a hierarchy (packages, departments, regions) and also link across it
- there are hundreds of links and a plain network would be a hairball
- the overall pattern between groups matters more than any single link

## Avoid it when
- readers must trace one link exactly (use a matrix)
- the items have no hierarchy
- there are only a few links (use an arc or chord diagram)

## Fields (data.json)
- `root` (category): the top of the hierarchy
- `classes` (id): each class's dotted path, package first
- `imports` (id): [importer, imported] pairs of indices into classes

## Interactions, motion, sound
- hover or tap a class to light what it imports and what imports it
- hover a package to light its links
- Motion: The bundles fade in package by package around the ring.
- Sound: A pop on hover pitched by package. 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": "edge-bundling",
  "title": "In the Flare toolkit, 39 classes import Transitioner, more than any other",
  "subtitle": "Imports between the 220 classes of Flare, an ActionScript visualisation library, grouped by package",
  "data": "/charts/edge-bundling.data.json"
}
```

## Source
Flare class hierarchy and dependencies (flare.json, flare-dependencies.json), vega-datasets (from the Flare toolkit by the UC Berkeley Visualization Lab) (BSD-3-Clause), retrieved 2026-12-01: https://github.com/vega/vega-datasets

Inspired by: [Hierarchical Edge Bundles: Visualization of Adjacency Relations in Hierarchical Data](https://ieeexplore.ieee.org/document/4015425), Danny Holten (linked, not copied).

Live: /charts/edge-bundling · Manifest: /charts/edge-bundling.json · Tags: network, hierarchy, dependencies, software, imports, circle, bundling, technology
