Intermediatecomposition

Treemap

Show hierarchical composition using nested rectangles sized by value.

Quick Facts

Complexity

intermediate

Category

composition

Treemap · Example Data

When to use a Treemap

  • Hierarchical data where size encoding is meaningful
  • Large number of categories that need to fit in limited space
  • Portfolio composition (products, markets, segments)
  • Disk space or budget breakdowns

About the Treemap

A treemap divides a rectangle into nested sub-rectangles, where each rectangle's area is proportional to a quantitative value. It excels at showing hierarchical data where both the hierarchy and the proportional sizes are important.

Treemaps are space-efficient and can pack thousands of items into a single view, making them popular for disk usage visualization, portfolio breakdowns, and hierarchical budget displays.