Tree diagram
Branching links show parent–child relationships.
Evening class registrations
Illustrative data
View data6 records
| Item | Group | Registrations |
|---|---|---|
| Clay | Studio | 48 |
| Studio | 32 | |
| Photo | Studio | 40 |
| Bread | Kitchen | 36 |
| Pasta | Kitchen | 28 |
| Ferment | Kitchen | 16 |
When it fits
Read the levels and membership of a hierarchy.
What you need
A rooted hierarchy with one parent per non-root item.
Watch for
Cross-cutting relationships do not fit a strict tree.
In practice

Sources and accessibility
The authored example uses illustrative data. Published references retain their original information and presentation.
- D3 · Tree layouts
- Vega contributors · The Flare software hierarchy
- W3C WAI · Accessible descriptions for complex images
Use Tab to reach controls and the data view. Native selects support arrow keys. All values are available in the data view; color and hover are never the only way to read the example.