# Org chart

> Use an org chart to show who sits under whom as boxes joined top-down, with one small measure per box when it helps.

- Data type: Groups within groups (`hierarchy`)
- Pro · not released yet: its code is not available; try it on its page, or use a free chart of the same data type (`hierarchy`)
- Example: **Weather and trade write four in five of the US Commerce Department's official notices** (The Department of Commerce and its agencies, with the documents each published in the Federal Register in 2025)
- How to read it: The department sits at the top and its agencies hang beneath it, busiest first; each bar is that agency's share of the department's documents.
- Phone: Adapts to mobile (Draws its own phone layout below 520px) · Video formats: 16:9 (best 16:9)

## Use it when
- reporting lines or containment, with 3 to 30 boxes
- each box needs a short name, a long name and maybe one number
- readers know the organisation and look for a part of it

## Avoid it when
- the boxes' sizes are the story (use a treemap)
- hundreds of units (use a collapsible or indented tree)
- people, not units, unless they agreed to be shown

## Fields (data.json)
- `name` (category): the unit's full name
- `short` (category): its short name or acronym
- `docs` (number, unit "documents", format count): Federal Register documents in 2025 that list this unit
- `children` (id): the units beneath it

Units are the example's: with your own data, set each number field's `unit` and `format` (percent, count, decimal, currency, compact) in the meta you pass to mount, or `chartreuse render --unit field=text --format field=count`. Scales and labels follow your data.

## Interactions, motion, sound
- hover or tap a box to read its full name and count
- Motion: The connectors draw down from the department, then each agency's box drops out of it into place and its bar fills.
- Sound: A pop on hover. 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": "org-chart",
  "title": "Weather and trade write four in five of the US Commerce Department's official notices",
  "subtitle": "The Department of Commerce and its agencies, with the documents each published in the Federal Register in 2025",
  "data": "/charts/org-chart.data.json"
}
```

## Source
Federal Register API: agencies and documents search (publication year 2025), Office of the Federal Register, US National Archives (Public domain (US government work)), retrieved 2026-12-01: https://www.federalregister.gov/developers/documentation/api/v1

Note: A document can list several agencies, so the department's 2,221 includes its agencies' documents. NOAA (900) and the International Trade Administration (869) together list 1,769, 80% of the total. Agencies with no 2025 documents are left out.

Live: /charts/org-chart · Manifest: /charts/org-chart.json · Tags: org chart, organisation, tree, boxes, government, hierarchy, weather, noaa
