# Treemap Charts

### **Chart setup to build a treemap chart**

{% stepper %}
{% step %}

#### Axis

Drag the dimension to plot on the axis (e.g., Sub Category).
{% endstep %}

{% step %}

#### **Values parameter**

Drag the measures to analyze (e.g., Actuals, Plan).
{% endstep %}

{% step %}

#### **Chart type**

Select **Treemap** from the Hierarchy section of the  Chart Type dropdown menu.
{% endstep %}
{% endstepper %}

> Treemap charts visually represent the proportions of different categories as nested rectangles and are ideal for hierarchical data. Explicit measure configuration is not required.&#x20;

<figure><img src="/files/ylXuqkcnCKOwT2a2hQgs" alt=""><figcaption><p>Treemap chart</p></figcaption></figure>

### **1. Drill down for treemap charts**

You can add more than one dimension to the Axis parameter and group categories to create a hierarchy. You can then drill down to view the chart at a higher granularity.

<div><figure><img src="/files/0bURQdkPqQEZCaphKegB" alt=""><figcaption><p>Sub category level</p></figcaption></figure> <figure><img src="/files/PRWLxQUt8nEIwvAIPv1A" alt=""><figcaption><p>Sub category + Sub region level</p></figcaption></figure></div>

### **2. Customization and formatting under Canvas settings**&#x20;

#### 2.1. Tile

You can choose from a range of built-in tile layouts.

<figure><img src="/files/wzFeDWUuBpji91Aex276" alt=""><figcaption><p>Treemap tile layouts</p></figcaption></figure>

#### 2.2. Expand all level

This option is applicable only when there is more than one axis dimension. When this option is enabled, clicking the individual drill-down icon will drill display all the categories in the next lower level of the hierarchy.

<figure><img src="/files/zx1yGvkj6HyUgeQEw6Qk" alt=""><figcaption><p>Expand all level option</p></figcaption></figure>

In the gifs below, notice how the treemap is rendered for all the Subregions across all Subcategories when **Expand all levels** is enabled. When this option is disabled, the treemap is rendered for the specific category on which we perform individual drill-down i.e. when we click the individual drill-down icon for Mineral water, the treemap is rendered for Mineral water only.

<div><figure><img src="/files/3DF2yKcXNBjqFoZlbhTX" alt=""><figcaption><p>Drill down and roll up with Expand all level enabled</p></figcaption></figure> <figure><img src="/files/x1oVXYcgFIrKhTIRqUe9" alt=""><figcaption><p>Drill down for a specific category with Expand all disabled</p></figcaption></figure></div>

#### 2.3. Measure grouping

When you render multiple measures in a treemap, you can segregate the measures into separate category groups by enabling the **Measure grouping** option.

<div><figure><img src="/files/dLGhB8h4cFT9pdcx8DZk" alt=""><figcaption><p>Treemap with measure grouping enabled</p></figcaption></figure> <figure><img src="/files/7UuPfCYRd3NWmfqc52VZ" alt=""><figcaption><p>Treemap with measure grouping disabled</p></figcaption></figure></div>

When measure grouping is enabled, additional options are available to customize the header.

<figure><img src="/files/V28TGBbZKoPtDDALO5ig" alt=""><figcaption><p>Header customizations</p></figcaption></figure>

#### 2.5. Inner padding

You can regulate the padding between the measures for a particular category.

<figure><img src="/files/So05iKm56BNOBqqnjm9Z" alt=""><figcaption><p>Inner padding</p></figcaption></figure>

#### 2.6. Outer padding

You can set the padding between different category groups.

<figure><img src="/files/MgeOQopqzeCWHQnKbSji" alt=""><figcaption><p>Outer padding</p></figcaption></figure>

## Additional formatting options

Here are the other settings that help you refine your Treemap chart.

<table><thead><tr><th width="143.5">Feature</th><th>Description</th><th data-type="content-ref">Link</th></tr></thead><tbody><tr><td>Number</td><td>Configure number formatting (decimals, units)</td><td><a href="/pages/5luh7CNmlb8gDCUt1Cdo">/pages/5luh7CNmlb8gDCUt1Cdo</a></td></tr><tr><td>Legend</td><td>Show/hide and customize the legends</td><td><a href="/pages/DKKnFEcoc3dq7SY8pPwT">/pages/DKKnFEcoc3dq7SY8pPwT</a></td></tr><tr><td>Data Label</td><td>Show exact values for each data point</td><td><a href="/pages/hlfbb3nncB1Juac8B2M1">/pages/hlfbb3nncB1Juac8B2M1</a></td></tr><tr><td>Trellis</td><td>Create small multiples using category split</td><td><a href="/pages/gZGiSWPH6pyEPgCUyJ7G">/pages/gZGiSWPH6pyEPgCUyJ7G</a></td></tr><tr><td>Conditional Formatting</td><td>Apply color rules to highlight values</td><td><a href="/pages/eAlYz7nnGGHBwj0vsrG2">/pages/eAlYz7nnGGHBwj0vsrG2</a></td></tr><tr><td>Sorting</td><td>Sort axis order</td><td><a href="/pages/DBrCRJn3JzquaVGXnE0Z">/pages/DBrCRJn3JzquaVGXnE0Z</a></td></tr><tr><td>Ranking</td><td>Limit to top/bottom N categories</td><td><a href="/pages/AmGsNJOt6hyWbMuwohm6">/pages/AmGsNJOt6hyWbMuwohm6</a></td></tr></tbody></table>


---

# Agent Instructions: 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:

```
GET https://docs.inforiver.com/analytics+/quick-charts/treemap-charts.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
