Decision tree maker
MEMBERSQuestions, answers and what follows from them, laid out as a tree that can be read from top to bottom.
Diagram
Diagram
Full stop and comma move between shapes, arrows move the selected one, Enter writes its text, C starts a connection, Delete removes. Capital R, D, O, B, T, N, F or S adds a shape. K folds, P shows what leads to the shape, Command or Control with F searches.
Pick a shape above and press here, or open a template.
Source, live both ways
Source, live both ways
What Mermaid can hold
What Mermaid can hold
What Mermaid cannot hold is kept in the project. Editing the code changes only what the code says.
Found a bug or missing something? Write to us
How it works
Making a decision tree
Ask first what rules out most cases. Every question is a diamond with an answer on each line, and every end is a box with what to do.
Questions should have answers that can be checked: a number, a date, yes or no. An answer that needs an opinion belongs to a person, not to a tree.
Colour the outcomes the same way everywhere, for example one colour for go, one for wait and one for stop, so the tree is read by its leaves.
Help
FAQ
How is the path to one outcome shown?
Select the outcome and press P, or choose Show what leads here. The questions and answers on the way stand out, the rest turns faint, and a message gives their number. Show what follows does the same forward from a question, and Escape shows everything again.
Are the colours of the outcomes kept in the Mermaid code?
Yes. Every shape with a colour of its own gets a style line with fill, stroke and color, in the colours it has on a light background, because Mermaid draws on white. Pasted style lines with hex colours are read back onto their shapes.
How does a decision tree differ from a flowchart?
In a decision tree every question only splits the cases: no path joins another or leads back, so each case ends in exactly one leaf. A flowchart may loop and merge. Tidy up As a tree places every shape one level below the question it comes from.