Treemap

Displays hierarchical data as nested rectangles where each rectangle's size represents a value. Treemaps make efficient use of space and allow viewers to quickly spot the largest categories at any level of the hierarchy.

Best for

  • Visualizing hierarchical data with size-based comparisons
  • Showing part-to-whole relationships across multiple levels
  • Displaying large datasets in a compact space

Avoid when

  • You need to show exact values — small rectangles are hard to read
  • The hierarchy has too many levels — nesting becomes confusing
  • You need to compare items that are not part of the same hierarchy
Alternatives: Sunburst , Partition