Nested totals as nested area.
import { Treemap } from "diagrammatic";A treemap with four tiles is a pie. This one is the annual opex tree: engineering, go-to-market, and G&A, then the teams inside them.
Illustrative data. FY25 operating expense, $84.0m. Leaves are teams.
Engineering holds 44.1m of the 84m total, slightly more than half. Platform's 14.2m is smaller than G&A's 14.8m combined. Sales at 12.4m exceeds the product team's 11.6m. Legal and facilities are among the smallest leaves at 2.4m and 2.1m.
- Use it for
- Hierarchical composition with many leaves, biggest first.
- Watch out
- Area compares poorly across distant tiles; label the few that matter.