> For the complete documentation index, see [llms.txt](https://docs.lowcoder.cloud/lowcoder-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.lowcoder.cloud/lowcoder-documentation/build-applications/app-editor/visual-components/dashboard-and-reporting/charts-and-graphs/treemap-chart.md).

# Treemap Chart

#### 🧱 Treemap Chart – Big Picture Through Nested Blocks

The **Treemap Chart** in **Lowcoder** transforms hierarchical data into a **space-efficient, nested rectangle layout**, where each block’s size and color reflect the data it represents. It’s ideal for spotting **proportions, distributions**, and **dominant categories** in complex datasets.

#### 📊 Best Used For:

* **Visualizing budget breakdowns**
* **Market share comparisons**
* **Categorized performance metrics**
* **File system/storage analysis**

#### 🧩 Sample Data Format

Treemap data uses a hierarchical JSON structure:

```json
{
  "name": "Categories",
  "children": [
    { "name": "Marketing", "value": 30000 },
    { "name": "Engineering", "value": 50000 },
    {
      "name": "Sales",
      "children": [
        { "name": "Domestic", "value": 20000 },
        { "name": "International", "value": 25000 }
      ]
    }
  ]
}
```

Each node can include a `value` (to determine block size) or `children` for nesting.

#### ⚙️ Key Configuration Options

* **Chart Type:** Drag “Treemap Chart” from the components section onto Editor's View
* **Node Size:** Determined by the `value` field
* **Hierarchy Depth:** Supports multiple nested levels
* **Tooltip Display:** Show name, value, or percent on hover

#### 🎨 Styling & Customisation

* Customize **color palette** to distinguish levels or value ranges
* Adjust **border spacing**, **label visibility**, and **hover effects**
* Use **ECharts JSON configuration** for control over animation, breadcrumb trails, and styling rules

### Component Playground

{% embed url="<https://app.lowcoder.cloud/playground/treemapChart/1>" %}

### Component Auto-Docs

{% embed url="<https://app.lowcoder.cloud/components/treemapChart>" %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.lowcoder.cloud/lowcoder-documentation/build-applications/app-editor/visual-components/dashboard-and-reporting/charts-and-graphs/treemap-chart.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
