---
title: "Treemap generator"
description: "Visualize hierarchical parts-to-whole relationships locally with nested rectangles. All data processing stays on your machine."
---

> HTML: https://trendalyzer.app/chart/treemap/
> Index: https://trendalyzer.app/llms.txt

# Treemap generator

Show hierarchical parts-to-whole relationships as nested rectangles sized by value.

Maturity: beta

A treemap chart for hierarchy.

Data shape: Item, parent, and numeric value columns.

## Columns

- `id` (text, required)
- `parent` (text, required)
- `value` (number, required)

## Sample data

| id | parent | value |
| --- | --- | --- |
| Product | Revenue | 45 |
| Services | Revenue | 30 |
| Other | Revenue | 25 |

Exports: SVG, PNG, and Excel data (data). PowerPoint export is currently unavailable pending dependency review.

## Hierarchical Structure & Parent-Child Nesting

A treemap visualizes hierarchical parts-to-whole relationships using a series of nested rectangles. Each main category branch is represented by a large bounding rectangle, which is further subdivided into smaller sub-rectangles for its child nodes. The area of every rectangle is strictly proportional to a specified quantitative value, enabling viewers to rapidly assess the largest contributors within complex, multi-level datasets.

## FAQ



### How does a treemap tile rectangles?

Treemaps use tiling algorithms (such as Squarified, Slice-and-Dice, or Voronoi) to subdivide area into rectangles that match data proportions while keeping aspect ratios close to 1:1.

### Can a treemap show both size and performance?

This generator maps rectangle area to the value column only. It does not accept a second measure for color or performance encoding.
