Skip to content

xpd views

Use xpd views when you build, revise, or review multi-panel layouts, Dash dashboards, geospatial maps, networks, hierarchies, flows, and page-level narrative presentation. It checks small multiples, compound panel colors, equal-area choropleths, headlines, captions, provenance, and multi-figure coherence against the 61 view principles in rules/xpd/present.yml. See the view review guide and view gallery.

Terminal window
xpd views [OPTIONS] [PATHS]...
xpd views <COMMAND>
Subcommand What it does
xpd views start Start a run: record the commit it starts from, the paths, line count, checks and optional benchmark of the project
xpd views plan Record the plan of a round: the fixes in order, and the findings that are right as they are
xpd views approve Record that the user said yes to a fix that changes what callers or users see
xpd views gate Gate a fix that is committed: run the checks, time --bench when set, count lines and compare the findings with the commit before it. Exit 1 when the fix is not kept
xpd views drop Record that a fix was given up, after its files were restored
xpd views status Print the run and the stage that comes next
xpd views finish End the run: compare findings, line count and benchmark timing with the start commit. Exit 1 while a fix is open or a new finding has no reason
Argument What it does
<PATHS>... Files or directories (directories respect .gitignore)
Option Default What it does
--kind <KIND> List only the findings of these kinds, separated by commas. Repeatable. Values: non-equal-area-choropleth, extra-dimensions, distorted-size, undeflated-money, missing-context, default-template, boxed-frame, heavy-grid, pattern-fill, animation-instead-of-multiples, free-facet-scales, rainbow-colorscale, cvd-collision, too-many-colors, oversaturated-fill, excess-ticks, zero-missing-ambiguity, inconsistent-compound-colors, legend-instead-of-labels, legend-order-mismatch, label-collision, column-name-label, rotated-ticks, all-caps-text, tiny-axis-labels, legend-inside-plot, missing-labels.
--limit <LIMIT> 20 The most findings to list of each kind, strongest first. 0 lists every finding.
--since <COMMIT> Count the findings at this commit too, and print each count beside the count of today.
--group-by <GROUP_BY> none Group findings and checklist items by owning module or shared cause. Values: none (Keep the default flat per-kind listing), module (Group findings and checklist items by owning module path), cause (Group related findings by shared kind and anchor files).
--packet <N> Emit one 1-indexed deterministic context-budgeted review packet for the Nth cluster.
--budget-lines <LINES> 300 Maximum source lines included across excerpts inside a --packet view.
--all-modules Include checklist review items for every surveyed module, not only modules with findings.
--format <FORMAT> Output format. Default: text on a terminal, json otherwise. Values: text, json.
--adapter <ADAPTER> A Python adapter file or shell command that emits rendered view specs for runtime checks.
--questions Print the inventory of view-review questions and runtime facts, with no file scan.
--book <BOOK> Filter questions and checklist items to principles citing these books (comma-separated keys of books in rules/xpd/present.yml, such as wilke,munzner) Repeatable.
--tier <TIER> Filter findings and checklist items to these Wilke severity tiers (comma-separated) Repeatable. Values: wrong (Mathematical or scale distortion that misstates the data), bad (Perceptual or clarity failure that impedes accurate decoding), ugly (Aesthetic or chrome flaw that leaves the data readable).
Terminal window
$ xpd views --questions --format json | jq '{workflow, questions: (.questions | length), findings: (.findings | length)}'
{
"workflow": "views",
"questions": 61,
"findings": 27
}
Exit code Meaning
0 Ledger printed or run stage succeeded
1 Gate rejected a change or finish blocked on open fixes, remaining findings, or unanswered checklist items