Tree diagramA root that branches.
One root at the top, each parent above its children. Who reports to whom, or what belongs to what, at a glance.
- Answers How are things connected?
- Your data one line per parent and child
- Boxes about 5 to 50
- Levels about 2 to 6
- Excel and Power BI SmartArt, or a decomposition tree
What is a tree diagram?
A tree diagram draws a hierarchy: one root at the top, and below it its children, their children and so on, each joined to its parent by a line. The boxes at the ends, with no children, are the leaves. The best-known tree diagram is the org chart, but files and folders, product categories and family trees are trees too.
A small company: the CEO leads three departments, and two of them split into teams. Each department and its teams wear one colour.
Why use a tree diagram?
Because a hierarchy is a shape, and a list flattens it.
- Who is above whom. Each box sits under its parent.
- Branches show. Each part of the tree in one colour.
- Depth shows. How many levels down a box is.
- Everyone knows it. Org charts are read without explanation.
How does a tree diagram work?
Four steps turn parent and child pairs into a tree.
- Step 1 of 4Boxes and linesA box per person or team, a line from each parent down to its children.
- Step 2 of 4A colour per branchEach department and everything below it in one colour.
- Step 3 of 4One path litFrom one leaf up to the root: CEO, Product, Design.
- Step 4 of 4Left to rightWith long names or many levels, the tree lies on its side.
The leaves are spread evenly across the picture, and every parent sits over the middle of its children.
What are the parts of a tree diagram?
Four parts, and each one has a job.
- Rootthe one box at the top
- Linejoins a parent to its child
- Parenta box with children below it
- Leafa box with no children
How do you read a tree diagram?
Three looks, in this order.
- Start at the rootThe CEO leads three departments.
- Follow one branchSales splits into two teams, North and South.
- Find the leavesMoney has no teams below it: a leaf on the first level.
What kinds of tree diagram are there?
The same company, three ways.
- Kind 1Top downThe root at the top, the classic org chart.
- Kind 2Left to rightRoom for long names and deep trees.
- Kind 3One branch litThe rest fades, for one story.
A radial tree puts the root in the middle and the levels in rings around it. A decision tree in machine learning is read the same way, with a question at each box. When each leaf has a size, a treemap or sunburst shows the same hierarchy as areas.
When should you use a tree diagram?
When every item has exactly one parent.
- each item has one parent
- the levels matter
- there are about 5 to 50 boxes
- who is under whom is the story
- items have several parents (a network graph)
- the sizes of the parts matter (a treemap or sunburst)
- there are thousands of items (an indented list you can fold)
Tree diagram or a list?
Boxes for the shape, a list for the long ones.
- each child under its parent, moved in
- fine for long trees, but the shape and the width of each level hide
An indented list (like folders in a file explorer) fits trees of any size and can be folded open. The tree diagram shows the shape, so a lopsided department or a long chain of managers is seen at once.
How do you make a tree diagram?
SmartArt in Office, or a hierarchy in Power BI.
In Excel, PowerPoint or Word, Insert > SmartArt > Hierarchy draws org charts from an indented list; Visio draws them from a table of names and managers. In Power BI, a table with an employee and manager column becomes a hierarchy with the PATH functions, and the decomposition tree draws a tree you open level by level.
What goes wrong with tree diagrams?
The most common mistake, and its fix: a tree too wide for the page.
| Mistake | Why it hurts | Fix |
|---|---|---|
| Too many leaves in one row | Names cannot be read | Turn it left to right, or fold branches |
| Items with two parents | It is not a tree | A network graph |
| Lines that cross | The hierarchy blurs | Order children under their parent |
| Every box the same | Branches blur together | Colour by branch |
| Sizes drawn as box sizes | Boxes are not areas | A treemap for sizes |
Every chart for “How are things connected?”
Read on, step by step.
Does it fit your data? Try it.
Paste your table into Chart Compass, say what the chart should show, and see the charts that fit, drawn with your own numbers. It runs in your browser, so the data stays with you.