# Hive plot

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

- 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: **D3's 30 modules rest on ten that need no other module** (Dependencies between the modules of D3 7.9.0, from each module's package.json)
- How to read it: Each axis holds one role (uses others, both, or only used); a curve joins a module to a module it depends on, coloured by the one that depends.
- Phone: Not recommended for mobile (21 labels overlap on a phone) · Video formats: none passed; closest 16:9

## Use it when
- nodes have a type or role you can sort them by
- you want the same network drawn the same way every time, to compare versions
- a force layout turns into a hairball

## Avoid it when
- the network is small enough for a plain node-link drawing
- nodes have no meaningful types
- readers are new to network charts and need the simplest view

## Fields (data.json)
- `modules[].id` (id): a D3 module
- `modules[].version` (text): its installed version
- `links` (id): [module, dependency] pairs from package.json

## Interactions, motion, sound
- hover or tap a module to read what it uses and what uses it
- hover a curve to read one dependency
- Motion: The modules pop onto their axes from the centre out, then each dependency draws itself across.
- Sound: A pop on hover pitched by axis. 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": "hive-plot",
  "title": "D3's 30 modules rest on ten that need no other module",
  "subtitle": "Dependencies between the modules of D3 7.9.0, from each module's package.json",
  "data": "/charts/hive-plot.data.json"
}
```

## Source
d3 7.9.0 and its module packages (package.json dependencies), D3 project, via the npm registry (ISC), retrieved 2026-12-01: https://github.com/d3/d3

Note: Only links between D3's own modules are shown; the five stand-alone modules use none of the others and none of the others use them.

Inspired by: [Hive plots: rational approach to visualizing networks](https://hiveplot.com/), Martin Krzywinski (linked, not copied).

Live: /charts/hive-plot · Manifest: /charts/hive-plot.json · Tags: network, dependencies, software, graph, roles, technology, D3
