Anatomy of a figure

The template every figure page follows

Every figure on this site is a d3 drawing with a numbered caption. The drawing below is real — it shows the citation records of release 2606 by parser outcome — and this page is also the contract: a new figure lane copies this file and its script, swaps in its own data, and ships. Hover or focus a bar to see the shared fact box.

Figure 0. The 45,003,332 citation records extracted from the 7,073,577 retained articles of release 2606, by parser outcome. Denominator: all 45,003,332 records (100%). A record is counted once.

Source: release 2606 parser outcomes, as published on the dataset page. This template inlines the same counts; real figures fetch a receipted JSON payload instead.

The conventions

The kit lives in src/styles/figure-kit.css and src/scripts/figures/kit.ts: page tokens, the --dg-* diagram palette shared with doering.ai, the fact box, formatters, and the token reader. What the kit lacks, a lane adds there — not as a private copy.