Skip to content
Graph Craft

Dendrogram

FacebookX
Example: Grouping 8 customer profiles (made-up data)Apache ECharts

Variant: Standard

Made-up data, for demonstration only

Variants

4 types · click one to see it in the frame above
Difference from standard
The recommended type; use it as a starting point
Use when
Show hierarchical clustering

Dendrogram is a tree diagram that shows the result of hierarchical clustering. The height of each merge stands for the distance between the groups being joined. This example has 8 customer profiles (made-up data), grouped by the average method. A cut line at height 3.2 splits them into 3 clusters.

How to read a Dendrogram

  • The branch tips are the individual items. Here the 8 customer profiles sit along the bottom.
  • The height where branches meet is the distance. The height of each node is proportional to the difference between the two child groups that join there.
  • A low merge means very similar. "Deal hunters" and "Comparers" join at about 0.45, and "Repeat buyers" and "Daily app users" at about 0.78.
  • A high merge means very different. The two big clusters join at about 6.45, higher than every earlier merge.
  • The cut line splits the groups. Cutting at 3.2 gives 3 clusters: (Deal hunters, Comparers, New customers), (Repeat buyers, Daily app users, Corporate clients) and (Gift buyers, Holiday shoppers). Try the "No cut line" variant to see how much harder it is to read without the line.
  • The left-to-right order of the leaves is not distance. Look only at the height of the merge points.

When to use it

  • You want to see which items are alike and how they group in layers. It shows how clusters are arranged by hierarchical cluster analysis.
  • You want to check a clustering against your expectations. You can compare the result with groups you expected, for example by colour.
  • You show it beside a heatmap. Showing a heatmap is good practice when working with clustering.

When not to use it

  • You need an exact number of clusters without making a choice. A dendrogram does not say how many clusters are right. You must choose where to cut.
  • There are so many leaves that labels and branches are hard to read. Reduce the number of items or group them before drawing the chart.
  • You need an organisation chart or a real structure. Use a Tree Diagram.
  • Readers are not used to clustering. Explain what the height and the cut line mean first.

Common mistakes

1. Not knowing which distance and linking method were used

Understand the distance metric and the algorithm. This example uses Euclidean distance and the average method (average linkage).

2. Cutting the branches wherever you like

The cut changes the number of clusters. Explain your reason, for example cutting where the height jumps sharply.

3. Thinking leaves that sit next to each other are similar

The leaf order is a side effect of how the chart is drawn. Look only at the height of the merge.

4. Using long labels on a vertical layout

A horizontal layout suits long labels.

5. Not checking against the real data

Compare the clusters with the raw data, for example a Scatter Plot of the two main variables.

Compared with similar charts

ChartHow it differsChoose it when
DendrogramBranch height shows distance, the result of clusteringYou look at the structure of similarity
Tree DiagramA general hierarchy, where height has no meaningThe structure of who belongs to what
HeatmapA colour table of all the valuesYou look at the values of each variable
PCA BiplotReduces the data to two axesYou want to see the clusters as a scatter

Frequently asked questions

Where does the name dendrogram come from?

From the Greek déndron, meaning tree, and grámma, meaning a drawing or mathematical figure.

What else is it used for?

Grouping genes or samples in computational biology, and showing evolutionary relationships (a phylogenetic tree).

Is the data in this example real?

No. It is made-up data of 8 profiles with 2 variables.

References

  • Dendrogram · Wikipedia · en.wikipedia.orgUsed to confirm: the definition and basics of the dendrogram
  • Dendrogram · Data to Viz · www.data-to-viz.comUsed to confirm: how to read a dendrogram and what to watch for

Last updated 28 Nov 2026