决策树. Copy the source, paste into the official playground, done. No coordinates — every position is stated relative to something else.
node start3 "Decision to make"
node opt1 "Option A" below-left of start3
node opt2 "Option B" below-right of start3
node good "Good outcome" below-left of opt1
node bad "Bad outcome" below-right of opt2
edge start3 -> opt1 "if cheap"
edge start3 -> opt2 "if scalable"
edge opt1 -> good
edge opt2 -> bad "risk"npx reladraw decision-matrix.reladraw -o out.svgOne decision, two options, good and bad outcomes.. Use it for quick decision records — the labels are your reasoning, the shape is your audit trail.
node new_id 'New label' below anchor — placement is relative, so the solver re-flows the whole diagram instantly.edge a -> b 'your label' — labels are the fastest way to carry rates, protocols or percentages.below to right of rotates a branch sideways without touching any other line.Declare each box with node, connect them with edge, and state one position per node relative to another. Paste the source from this page into the official playground and it renders immediately.
Yes — the source is free to copy, modify and ship in docs, READMEs, books or client decks. No attribution required.
Render in the playground and export SVG, or run it locally: npx reladraw file.reladraw -o out.svg for CI-friendly builds.