Hierarchy

A hierarchy diagram represents a tree of labeled nodes connected by parent-child relationships. The view field determines how the tree is rendered.

Fields

FieldRequiredTypeDescription
kindyes"hierarchy"Must be exactly "hierarchy"
viewnostringRendering intent. Auto-selected if omitted.
titlenostringChart title (rendered above the diagram)
effectnostringFishbone view only: spine-end effect label. Falls back to title if omitted.
nodesyesarray of NodeAt least one node required

Node fields

FieldRequiredTypeDescription
labelyesstringDisplay text
idnostringStable identifier for parent references. If set, other nodes reference this node by id, not label.
parentnostringid (preferred) or label of the parent node; omit for root nodes

View values

valueMeaningAuto-selected when
org_chartTop-down tree; exactly one root requiredexactly 1 root node
fishboneCause-and-effect diagram2+ root nodes

Auto-selection: When view is omitted, the engine selects org_chart for exactly one root node, fishbone for two or more root nodes. The CLI emits a warning when view is auto-selected; add an explicit view to suppress it.

View-specific constraints

org_chart: exactly one root node required.
fishbone: 2–20 root nodes (cause categories); effect (or title if effect is omitted) is rendered as the effect label at the right end of the spine. Recommend 8 or fewer root nodes — 9+ cause categories on the same side of the spine may overlap.

Example — org_chart view (auto-selected)

Engineering Division VP Engineering Backend Team Frontend Team

Example — fishbone view

High Latency Server CPU saturation Network Bandwidth

Example — org_chart with stable id references

Engineering Team VP Engineering Backend Team Frontend Team