---
metadata:
  - name: generator
    content: Diplodoc Platform v5.63.0
alternate:
  - en/operations/chart/chart-null-settings
  - ru/operations/chart/chart-null-settings
  - href: en/operations/chart/chart-null-settings.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/operations/chart/chart-null-settings.html
title: How to configure the display of null values ​​in a DataLens On-premises chart
description: "Follow this guide to\_configure the display of null values in a DataLens On-premises chart."
vcsPath: en/operations/chart/chart-null-settings.md
---

# Configuring the display of null values in a DataLens On-premises chart

{% note info %}

This setting is only available for charts that have at least one X or Y axis:

* Line chart.
* Area chart (stacked and normalized).
* Column chart (including normalized).
* Bar chart (including normalized).
* Scatter chart.

{% endnote %}

If the source data includes a row where the measure value is `null`, the chart with default settings connects the neighboring points with values other than `null` with a line.

You can configure how the chart will display null values in the chart section settings:

1. Click <!-- diplodoc:svg ![image](../../_assets/console-icons/gear.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="M7.199 2H8.8a.2.2 0 0 1 .2.2c0 1.808 1.958 2.939 3.524 2.034a.2.2 0 0 1 .271.073l.802 1.388a.2.2 0 0 1-.073.272c-1.566.904-1.566 3.164 0 4.069a.2.2 0 0 1 .073.271l-.802 1.388a.2.2 0 0 1-.271.073C10.958 10.863 9 11.993 9 13.8a.2.2 0 0 1-.199.2H7.2a.2.2 0 0 1-.2-.2c0-1.808-1.958-2.938-3.524-2.034a.2.2 0 0 1-.272-.073l-.8-1.388a.2.2 0 0 1 .072-.271c1.566-.905 1.566-3.165 0-4.07a.2.2 0 0 1-.073-.27l.801-1.389a.2.2 0 0 1 .272-.072C5.042 5.138 7 4.007 7 2.199c0-.11.089-.199.199-.199M5.5 2.2c0-.94.76-1.7 1.699-1.7H8.8c.94 0 1.7.76 1.7 1.7a.85.85 0 0 0 1.274.735 1.7 1.7 0 0 1 2.32.622l.802 1.388c.469.813.19 1.851-.622 2.32a.85.85 0 0 0 0 1.472 1.7 1.7 0 0 1 .622 2.32l-.802 1.388a1.7 1.7 0 0 1-2.32.622.85.85 0 0 0-1.274.735c0 .939-.76 1.7-1.699 1.7H7.2a1.7 1.7 0 0 1-1.699-1.7.85.85 0 0 0-1.274-.735 1.7 1.7 0 0 1-2.32-.622l-.802-1.388a1.7 1.7 0 0 1 .622-2.32.85.85 0 0 0 0-1.471 1.7 1.7 0 0 1-.622-2.32l.801-1.389a1.7 1.7 0 0 1 2.32-.622A.85.85 0 0 0 5.5 2.2m4 5.8a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0M11 8a3 3 0 1 1-6 0 3 3 0 0 1 6 0" clip-rule="evenodd"/></svg> in the top-right corner of the section with the measure you want to configure (the icon appears when you hover over the section).
1. Configure the **Null values** option:

   * **Hide**: Do not show points with `null` values. On the chart, it will appear as a line gap, skipped column or point. For example, if the source has a row with the date, `20.07.2022`, but the sales total for it is not specified.
      
     {% cut "Example of a chart with a gap" %}

     ![image](../../_assets/datalens/operations/chart/line-chart-null.png =700x495)

     **Source table**

     | OrderDate | Sales |
     | --------- | --------- |
     | 15.07.2022 | 301629 |
     | 16.07.2022 | 453595 |
     | 17.07.2022 | 977583 |
     | 18.07.2022 | 527834 |
     | 19.07.2022 | 870054 |
     | 20.07.2022 | null |
     | 21.07.2022 | 569650 |
     | 22.07.2022 | 1116034 |
     | 23.07.2022 | 883208 |
     | 24.07.2022 | 2359483 |
     | 25.07.2022 | 1137851 |
     
     {% endcut %}

   * **Connect**: Connect neighboring points with values other than `null` with a line.
   * **Display as 0**: Replace `null` values with `0`.

1. Click **Apply**.

{% cut "Example of replacing null with 0" %}

![image](../../_assets/datalens/operations/chart/line-chart-null-0.png =700x495)

{% endcut %}

If a row is missing from the source data altogether, the **Null values** option will not change the chart. For example, if the source does not have a row with the particular date, `20.07.2022`, nothing will be shown for this date on the chart.

{% cut "Example of a chart with a missing date" %}

![image](../../_assets/datalens/operations/chart/line-chart-no-rec.png =700x495)

**Source table**

| OrderDate | Sales |
| --------- | --------- |
| 15.07.2022 | 301629 |
| 16.07.2022 | 453595 |
| 17.07.2022 | 977583 |
| 18.07.2022 | 527834 |
| 19.07.2022 | 870054 |
| 21.07.2022 | 569650 |
| 22.07.2022 | 1116034 |
| 23.07.2022 | 883208 |
| 24.07.2022 | 2359483 |
| 25.07.2022 | 1137851 |

{% endcut %}

{% note info %}

To display a null value for a date missing from the table:

1. Add a row with this date and `null` for the value to the source.
1. In the chart section settings for the relevant measure, select **Display as 0** for the **Null values** option.

{% endnote %}
