# Heatmap

To learn more about heatmap charts and how to create one, please view this [video](https://youtu.be/pBA8COL7BUQ?si=tXBXlqs39uaOFQna).

The Heatmap displays information in a two-dimensional grid of cells. Each cell represents a grouping of data.

| Features                                                              | Quantity | Notes               |
| --------------------------------------------------------------------- | -------- | ------------------- |
| Required [Dimensions](/immerse/measures-and-dimensions.md#dimensions) | 2        | X Axis and Y Axis.  |
| Required [Measures](/immerse/measures-and-dimensions.md#measures)     | 1        | Measure cell color. |

Cell color indicates the relative value of the cells, from one end of the spectrum to the other.

Heatmaps are ideal for spotting outliers, which show up vividly on the color spectrum. They work best when the number of groupings is not too large, since large numbers of groupings cause the heatmap to exceed the viewport, making comparison harder (for such scenarios, consider using a [Scatter Plot](/immerse/immerse-chart-types/scatter-plot.md)).

## Heatmap Example

Create a new Heatmap. Choose a **Data Source**. This example uses NBA Play-by-play Stats from [nbastuffer.com](https://www.nbastuffer.com/access-exportable-nba-stats/).

Set the **X Axis** dimension to *converted\_x* with **Binning On** and **Y Axis** dimension set to *converted\_y* with **Binning On**. The *converted* values represent the coordinate location on the basketball court, versus the *original* values, which represent the distance from the goal (as though all shots were half-court).

![](/files/i2cMm2M6GkYAU4n6aVrg)

You can turn off **NULL DIMENSIONS** to get a chart that more closely resembles a basketball court.

![](/files/mGqcChtWRoIaxdPv3NLN)

If you change the **COLOR PALETTE** to the red-to-green spectrum and reverse the direction, you can discern the highest average scoring locations (in green) from the lowest (in red) using commonly understood visual cues.

![](/files/D3mF8IfArx0HEal4jdLq)

You can edit the chart title and axes labels to give them more meaningful names.

![](/files/9SUVF8egcyn33P6x9xGW)


---

# 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.heavy.ai/immerse/immerse-chart-types/heatmap.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.
