Yandex Cloud
Search
Discuss with expertTry it for free
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • System Status
  • Marketplace
    • Featured
    • Infrastructure & Network
    • Data Platform
    • AI for business
    • Security
    • DevOps tools
    • Serverless
    • Monitoring & Resources
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
    • Price calculator
    • Pricing plans
  • Customer Stories
  • Documentation
  • Blog
© 2026 Direct Cursus Technology L.L.C.
Yandex DataLens
  • DataLens neuroanalyst
    • Overview
      • Overview
      • Chart settings
      • Measure Values and Measure Names
      • Multi-dataset charts
        • Creating a chart
        • Replacing a dataset in a chart
        • Creating a multi-dataset chart
        • Adding a hierarchy
        • Configuring a navigator
        • Configuring the display of null values
        • Configuring a color palette
    • Adding chart info
    • Opening a chart as a table
    • Saving a chart as an image
    • Versioning
    • Exporting data from charts
    • Chart inspector
    • Access management
  • Gallery in DataLens
  • Audit Trails events
  1. Charts
  2. Wizard charts
  3. Step-by-step guides
  4. Adding a hierarchy

Adding a hierarchy to charts in Yandex DataLens

Written by
Yandex Cloud
Updated at June 2, 2026

Note

  • You cannot use hierarchies in Map, Indicator, and Pivot table charts.
  • You can only add one hierarchy to a chart.

To add a hierarchy:

Warning

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

  1. In the left-hand panel, select Collections and workbooks.
  2. Open the workbook you need and select an object.

Proceed with this guide from Step 2.

  1. In the left-hand panel, click Charts and select the chart to add a hierarchy to.

  2. On the left side of the screen above the list of dimensions and measures, click and select Hierarchy.

    screenshot

  3. Enter the hierarchy name, select dimensions, and arrange them as needed.

    screenshot

  4. In the bottom-right corner, click Save.

  5. Drag your hierarchy to any available section. For example, for a Table chart, you can use the Columns section.

  6. Drag other dimensions and measures to the appropriate sections.

  7. In the top-right corner, click Save.

Example of adding a hierarchyExample of adding a hierarchy

As our data source, we will use a ClickHouse® demo database with a Moscow retail chain's sales data. For an example of creating a connection and dataset, see this guide.

  1. In the top-right corner of the dataset, click Create chart.

  2. Select the Donut chart visualization type.

  3. Add a sales measure to the chart. To do this, drag the Sales field from Measures to the Measures section.

  4. On the left side of the screen above the list of dataset fields, click and select Hierarchy.

  5. Enter Products as the hierarchy name and select the dimensions in the following order: ProductCategory, ProductSubcategory, ProductBrand, and ProductName.

  6. In the bottom-right corner, click Save.

  7. Drag your hierarchy to the Color section.

  8. Save the chart:

    1. In the top-right corner, click Save.
    2. In the window that opens, enter Donut chart with hierarchy as the chart name and click Save.

Adding the hierarchy to the chart will allow you to switch between levels of detail: ProductCategory → ProductSubcategory → ProductBrand → ProductName.

Check out some examples of charts with a hierarchy on our ready-made dashboard.

See alsoSee also

  • Creating a tree.

ClickHouse® is a registered trademark of ClickHouse, Inc.

Was the article helpful?

Previous
Creating a multi-dataset chart
Next
Configuring a navigator
© 2026 Direct Cursus Technology L.L.C.