---
metadata:
  - name: generator
    content: Diplodoc Platform v5.63.0
alternate:
  - en/visualization-ref/choropleth-map-chart
  - ru/visualization-ref/choropleth-map-chart
  - href: en/visualization-ref/choropleth-map-chart.md
    type: text/markdown
    title: Markdown version
csp:
  - script-src:
      - https://mc.yandex.ru
    img-src:
      - https://mc.yandex.ru
    connect-src:
      - https://mc.yandex.ru
      - wss://mc.yandex.ru
    child-src:
      - 'blob:'
      - https://mc.yandex.ru
    frame-src:
      - 'blob:'
      - https://mc.yandex.ru
    frame-ancestors:
      - 'blob:'
      - https://mc.yandex.ru
canonical: en/visualization-ref/choropleth-map-chart.html
title: Choropleth map in DataLens On-premises
description: >-
  In this tutorial, you will learn how to create and customize the choropleth
  map visualization type in DataLens On-premises.
vcsPath: en/visualization-ref/choropleth-map-chart.md
---

# Choropleth map <!-- diplodoc:svg ![](../_assets/datalens/heatmap.svg) --><svg xmlns="http://www.w3.org/2000/svg" width="25" height="25" viewBox="0 0 25 25"><path d="M15.494 15.004 14.51 17Zm105.001 0L121.5 17ZM68.507 50.997l.985 1.995ZM14.51 121.01l.984 1.994Zm106.99 0-1.005 1.994Zm0 0" style="fill-rule:nonzero;fill:#cbe3fc;fill-opacity:1;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke:#cbe3fc;stroke-opacity:1;stroke-miterlimit:4" transform="scale(.18657 .18797)"/><path d="M0 0h134v133H0Zm18.006 14.007-2.01.997-2.994 3.99v100.997l1.005 2.016 4 1.995h101.002l1.989-.998 2.01-3.013V18.994L122.003 17l-2.994-2.992Zm0 0" style="fill-rule:nonzero;fill:#fff;fill-opacity:1;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke:#fff;stroke-opacity:1;stroke-miterlimit:4" transform="scale(.18657 .18797)"/><path d="m19.995 21.01 61.996.499-9.484 22.485-52.512-20.99Zm70.999 0h25v73.98L69.01 76.995ZM20.498 32.003 65.493 50l3.517 2.493L56.008 86.99l-25.502-8.998-10.51-5.486ZM19.995 83 52.01 94.991l-8.02 22.007H19.996Zm44.995 1.995h3.517l47.487 19.015v12.49l-.503.498H52.993Zm0 0" style="fill-rule:nonzero;fill:#fff;fill-opacity:1;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke:#fff;stroke-opacity:1;stroke-miterlimit:4" transform="scale(.18657 .18797)"/><path d="m18.509 14.007 66.497.498-66.497.5Zm74.998 0 24.497.498-24.497.5Zm28.998 4.987.503 78.512h-1.005Zm-103.515.998h63.504l.502 1.517-1.486-.5H20.498l-.503 1.497.503 1.496Zm72.507 0h25.502v76.017l-1.99-.52.985-.997V21.01H91.497l-1.005.997ZM13.505 28.99l.502 41.5h-1.005Zm5.988 2.016.502 42.497H18.99Zm53.997 11.99-.983 1.995ZM13.505 79.01l.502 39.485h-1.005Zm5.988 2.993.502 34.995 23.995.5-25 .498Zm97.003 22.007.503 13.986-64.99-.499 63.985-.499Zm6.009 1.995.503 12.49h-1.005ZM18.509 123.004l22.487.499-22.487.499Zm30.987 0 68.508.499-68.508.499Zm0 0" style="fill-rule:nonzero;fill:#55a6f7;fill-opacity:1;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke:#55a6f7;stroke-opacity:1;stroke-miterlimit:4" transform="scale(.18657 .18797)"/><path d="M85.509 14.007c4.187-1.143 6.867-.81 7.998.997h25.983l2.513 2.494v80.008c1.863 1.184 2.198 3.865 1.005 8l-1.005.998v13.986l-2.513 2.514H49.496c-1.193 1.87-3.852 2.203-7.998.998l-1.005-.998H16.5l-2.492-2.514V79.51c-1.8-1.144-2.135-3.804-1.005-8.002l1.005-1.018V29.51c-1.8-1.144-2.135-3.804-1.005-8.001l1.005-4.011 2.492-2.494h68.005ZM18.99 19.992v3.013L73.01 44.99l9.986-22.984v-2.015Zm73.01 0L68.004 76.995l48.994 19.014V19.992ZM19.994 31.006 18.99 74.002l37.018 14.007 13.986-37.012ZM18.99 82.003v35.993h25l9.003-21.987Zm46 1.995-12.981 33.998h64.99V104.01l-46-19.015Zm0 0" style="fill-rule:nonzero;fill:#027bf3;fill-opacity:1;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke:#027bf3;stroke-opacity:1;stroke-miterlimit:4" transform="scale(.18657 .18797)"/></svg> in DataLens On-premises

A choropleth map uses different colors and hues for entire areas and regions. Areas on a map are set using geopolygons. 

A _geopolygon_ is an element that consists of an area bounded by a closed line and the line itself. The measure value is expressed through color saturation or hue.

​A choropleth map is used to analyze a measure within a territorial unit. For example, you can use a choropleth map to demonstrate the density of population of individual districts.

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

To show polygons on a map, add a [Geopolygon](../dataset/data-types.md#geopolygon) type field to your dataset:

* Create a text field with data formatted as `[[[55.60807, 37.5698], [55.60847, 37.56992], [55.60851, 37.57095]]]` for polygon point coordinates enclosed in square brackets. 
    You can first prepare data in a database and set the [Geopolygon](../dataset/data-types.md#geopolygon) data type in the dataset description interface.
* Use the `GEOPOLYGON(polygon_string)` [function](../function-ref/GEOPOLYGON.md) to create a calculated field with the [Geopolygon](../dataset/data-types.md#geopolygon) data type.

Follow the [link](https://storage.yandexcloud.net/doc-files/Regions.csv) to download a sample CSV file with Russian region polygons.

## Wizard sections {#wizard-sections}

Wizard<br/> section| Description
----- | ----
Polygons (Geopolygons) | Measure of the [Geopolygon](../dataset/data-types.md#geopolygon) type
Colors | Dimension or measure. Affects the color and intensity of area fill.
Tooltips | Dimension or measure. A tooltip that appears when you hover over an area. For `String` type fields, you can configure using basic [Markdown in DataLens On-premises](../dashboard/markdown.md) syntax: click the icon before the field name and enable **Markdown**.
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 choropleth map {#create-diagram}


<!-- source: en/_includes/datalens/operations/datalens-workbooks-collections-note-step4.md -->
{% 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.


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

Follow the guide from step 4.

{% endnote %}
<!-- endsource: en/_includes/datalens/operations/datalens-workbooks-collections-note-step4.md -->


1. <!-- source: en/_includes/datalens/visualization-ref/create-1.md -->
   Go to the DataLens home page.
   <!-- endsource: en/_includes/datalens/visualization-ref/create-1.md -->
1. <!-- source: en/_includes/datalens/visualization-ref/create-2.md -->
   In the left-hand panel, select <!-- diplodoc:svg ![chart](../_assets/console-icons/chart-column.svg) --><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16"><g clip-path="url(#svg-empoykqo__a)"><path fill="currentColor" fill-rule="evenodd" d="M11.5 3.5h2a.5.5 0 0 1 .5.5v8a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1-.5-.5V4a.5.5 0 0 1 .5-.5m-2.5 9a.5.5 0 0 0 .5-.5V7a.5.5 0 0 0-.5-.5H7a.5.5 0 0 0-.5.5v5a.5.5 0 0 0 .5.5zm-4.5 0A.5.5 0 0 0 5 12v-2a.5.5 0 0 0-.5-.5h-2a.5.5 0 0 0-.5.5v2a.5.5 0 0 0 .5.5zm-1 1.5h-1a2 2 0 0 1-2-2v-2a2 2 0 0 1 2-2h2q.26 0 .5.063V7a2 2 0 0 1 2-2h2q.26 0 .5.063V4a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2z" clip-rule="evenodd"/></g><defs><clipPath id="svg-empoykqo__a"><path fill="currentColor" d="M0 0h16v16H0z"/></clipPath></defs></svg> **Charts**.
   <!-- endsource: en/_includes/datalens/visualization-ref/create-2.md -->
1. <!-- source: en/_includes/datalens/visualization-ref/create-3.md -->
   Click **Create chart** → **Chart**.
   <!-- endsource: en/_includes/datalens/visualization-ref/create-3.md -->
1. <!-- source: en/_includes/datalens/visualization-ref/create-4.md -->
   At the top left, click <!-- diplodoc:svg ![image](../_assets/console-icons/circles-intersection.svg) --><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M6.576 11.854a4 4 0 1 1 0-7.707A5.48 5.48 0 0 0 5 8c0 1.5.601 2.861 1.576 3.854M8 12.9a5.5 5.5 0 1 1 0-9.8 5.5 5.5 0 1 1 0 9.8m1.424-8.754A4.003 4.003 0 0 1 14.5 8a4 4 0 0 1-5.076 3.854A5.48 5.48 0 0 0 11 8c0-1.5-.601-2.861-1.576-3.854M8 4.877C8.914 5.61 9.5 6.737 9.5 8s-.586 2.39-1.5 3.123A4 4 0 0 1 6.5 8c0-1.263.586-2.39 1.5-3.123" clip-rule="evenodd"/></svg> **Select dataset** and specify the dataset to visualize. If you do not have a dataset, [create one](../dataset/create-dataset.md#create).
   <!-- endsource: en/_includes/datalens/visualization-ref/create-4.md -->
1. <!-- source: en/_includes/datalens/visualization-ref/create-5.md -->
   Select **Map** for the chart type.
   <!-- endsource: en/_includes/datalens/visualization-ref/create-5.md -->
1. Select **Polygons (Geopolygons)** as the layer type.
1. Drag a dimension of the [Geopolygon](../dataset/data-types.md#geopolygon) type from the dataset to the layer type selection section.
1. Color the polygons on the map. Move the measure or dimension to the **Colors** section.
1. Add tooltips to show the dimension and measure values when hovering over a polygon.

<!-- source: en/_includes/datalens/datalens-map-scale-note.md -->
{% note info %}
              
You can show a particular area on the map using the **Center** and **Scale** [settings](../concepts/chart/settings.md#common-settings).
          
{% endnote %}
<!-- endsource: en/_includes/datalens/datalens-map-scale-note.md -->

<!-- source: en/_includes/datalens/visualization-ref/you-can-3.md -->
You can also:

* Add, rename, and delete a layer.
* Reorder the layers within a layer type.
* Apply a filter to the entire chart or one layer.
<!-- endsource: en/_includes/datalens/visualization-ref/you-can-3.md -->

## Recommendations {#recomendations}

* Do not use a choropleth map to precisely compare some values.
* To make the comparison more precise, add data signatures or tooltips with information to the map.

<!-- source: en/_includes/datalens/visualization-ref/see-also-sub.md -->
#### Useful links {#see-also}

* [Creating a dashboard in DataLens On-premises](../operations/dashboard/create.md)
* [Adding a chart to a dashboard in DataLens On-premises](../operations/dashboard/add-chart.md)
* [Adding a selector to a dashboard in DataLens On-premises](../operations/dashboard/add-selector.md)
<!-- endsource: en/_includes/datalens/visualization-ref/see-also-sub.md -->