[Yandex Cloud documentation](../../index.md) > [Yandex DataLens](../index.md) > Charts > [Visualization reference](index.md) > Map > Heat map

# Heat map ![](../../_assets/datalens/heatmap.svg) in Yandex DataLens

A heat map shows the density of point distribution. Map areas are colored with a gradient ranging from green to red: the more points are grouped in an area, the closer its color is to red.

### What you need to know about heat maps

+ Heat maps are used to display clusters of large numbers of points.

   {% note info %}

   If there are few points, using this type of map may distort the detected dependencies.

   {% endnote %}

+ A heat map is at its most effective when representing a dataset of many points within a small geographical area. 

   If there are few points, their values can be expressed through the intensity of their color: the higher the value, the closer the color is to red.

+ A heat map helps you find dependencies that might otherwise be hidden due to overlapped points on the map (in case of a [point](point-map-chart.md) map).

   For example, you can use a heat map to determine the districts where customers order for delivery most often.

   ![heat-map](../../_assets/datalens/visualization-ref/heatmap/heatmap.png =800x)

## Wizard sections {#wizard-sections}

Wizard<br/> section| Description
----- | ----
Heat map (Geopoints) | Measure of the [Geopoint](../dataset/data-types.md#geopoint) type
Colors | Dimension or measure. Affects the intensity of point fill.
Layer filters | Dimension or measure. Used as a filter for the current layer.
Filters | Dimension or measure. Used as a filter for the entire chart.

## Creating a heat map {#create-diagram}


{% note warning %}

If you use the new DataLens object model with [workbooks and collections](../workbooks-collections/index.md):


1. Go to the DataLens [home page](https://datalens.ru/?skipPromo=true). In the left-hand panel, select ![collections](../../_assets/console-icons/rectangles-4.svg) **Collections and workbooks**.


1. Open the workbook, click **Create** in the top-right corner, and select the object you need.

Follow the guide from step 4.

{% endnote %}


1. Go to the DataLens [home page](https://datalens.ru/?skipPromo=true).
1. In the left-hand panel, select ![chart](../../_assets/console-icons/chart-column.svg) **Charts**.
1. Click **Create chart** → **Chart**.
1. At the top left, click ![image](../../_assets/console-icons/circles-intersection.svg) **Select dataset** and specify the dataset to visualize. If you do not have a dataset, [create one](../dataset/create-dataset.md#create).
1. Select **Map** for the chart type.
1. Select the **Heat map (Geopoints)** layer type.
1. Drag a dimension of the [Geopoint](../dataset/data-types.md#geopoint) type from the dataset to the layer type selection section.
1. Change the weight of the points on the heat map. To do this, drag the measure to the **Colors** section.
1. Optionally, update the [color settings](#color-settings) for the measure.

{% note info %}
              
You can show a particular area on the map using the **Center** and **Scale** [settings](../concepts/chart/settings.md#common-settings).
          
{% endnote %}

You can also:

* Add, rename, and delete a layer.
* Apply a filter to the entire chart or one layer.

### Color setting {#color-settings}

To change the color settings:

1. Click ![image](../../_assets/console-icons/gear.svg) in the **Colors** section (the icon appears when you hover over the section).
1. In the color settings, specify:

   * **Gradient type**: Select two or three colors.
       * Gradient color: Select a color palette for the gradient from the list.
       * Gradient direction: Change the gradient direction using the ![image](../../_assets/console-icons/arrow-right-arrow-left.svg) icon.
      * **Set threshold values**: Set numeric thresholds for each color.

1. Click **Apply**.

## Recommendations {#recomendations}

* Use a heat map if your dataset has many enough points. If there are few points, using this type of map may distort the detected dependencies.
* The intensity of point and area fill on a heat map varies depending on the map's scale. Please keep this in mind.


## Use cases {#examples}

* [Analyzing public data on road accidents in Russia](../tutorials/data-from-csv-geo-visualization.md)


#### Useful links {#see-also}

* [Creating a dashboard in Yandex DataLens](../operations/dashboard/create.md)
* [Adding a chart to a dashboard in Yandex DataLens](../operations/dashboard/add-chart.md)
* [Adding a selector to a dashboard in Yandex DataLens](../operations/dashboard/add-selector.md)