Yandex Cloud
Search
Contact UsGet started
  • Blog
  • Pricing
  • Documentation
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • ML & AI
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Customer Stories
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
  • Blog
  • Pricing
  • Documentation
Yandex project
© 2025 Yandex.Cloud LLC
Yandex DataLens
    • Overview
      • All visualizations
      • Line chart
      • Area chart
      • Normalized stacked area chart
      • Column chart
      • Normalized column chart
      • Bar chart
      • Normalized bar chart
      • Scatter chart
      • Pie chart
      • Combined chart
      • Tree chart
      • Donut chart
      • Table
      • Pivot table
      • Indicator
        • Overview
        • Point map
        • Point map with clusters
        • Polyline map
        • Choropleth map
        • Heat map
    • Versioning
    • Chart inspector
    • Access management
  • Audit Trails events

In this article:

  • Wizard sections
  • Creating a polyline map
  • Recommendations
  1. Charts
  2. Visualization reference
  3. Map
  4. Polyline map

Polyline map

Written by
Yandex Cloud
Updated at March 6, 2025
  • Wizard sections
  • Creating a polyline map
  • Recommendations

A polyline map is a type of geolayer on a Map chart that lets you draw polylines on the map. A polyline consists of points connected in a certain order. A polyline map is used, for example, to show the path of a moving object.

polyline-map-chart

To build a polyline map, you need the following data:

  • Coordinates of line points of the Geopoint data type. Each point of each polyline must be stored in a dataset as a separate row.
  • A field or a set of fields to group points into lines (each line's ID).
  • A field to sort the order of points in each line (such as a timestamp or point number).

You can color polyline segments in one of the following ways:

  • In a gradient by measure (for a example, an average speed in a point).

    polyline-map-chart-2

  • In discrete colors by dimension (for example, by trip name).

    polyline-map-color-dimensions

Wizard sections

Wizard
section
Description
Polylines (Geopoints) Measure of the Geopoint type
Measures Measure. The value displayed when you hover over a point.
Grouping Dimension. Defines a group of points forming a polyline.
Colors Dimension or measure. Affects the intensity of line segment fill. A segment is filled in from the originating point.
Order Dimension. Defines the order for connecting points within a group.
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 polyline map

To create a polyline map:

Warning

If you use a new DataLens object model with workbooks and collections:

  1. Go to the DataLens home page. In the left-hand panel, select Collections and workbooks.
  2. Open the workbook, click Create in the top-right corner, and select the appropriate object.

Follow the guide from step 4.

  1. Go to the DataLens home page.
  2. In the left-hand panel, select Charts.
  3. Click Create chart → Chart.
  4. At the top left, click Select dataset and specify the dataset to visualize.
  5. Select Map for chart type.
  6. Select the Polylines (Geopoints) layer type.
  7. Drag a dimension of the Geopoint type from the dataset to the layer type selection section.
  8. Specify a group of points that defines polylines. Move the measure to the Grouping section.
  9. Define the order for connecting points within the group. Move the measure to the Order section.
  10. Color the line on the map. Move the measure or dimension to the Colors section.

You can also:

  • Add, rename, and delete a layer.
  • Apply a filter to the whole chart or one layer.

Recommendations

  • Reduce the number of route points at the source level if there are too many of them. To do this, use a chart-level filter. This will speed up map loading and rendering.
  • Use the MAVG moving average function to smooth measure outliers of individual points/sections. For example, when building a line representing average speed using the MAVG([speed],2,2) function, the speed measure values are averaged out in the current point, as well as two points before and two points after it. As a result, the color gradient changes more smoothly.

See also

  • Creating a dashboard in DataLens
  • Adding a chart to a dashboard
  • Adding a selector to a dashboard

Was the article helpful?

Previous
Point map with clusters
Next
Choropleth map
Yandex project
© 2025 Yandex.Cloud LLC