---
metadata:
  - name: generator
    content: Diplodoc Platform v5.63.0
alternate:
  - en/operations/chart/add-parameter-chart
  - ru/operations/chart/add-parameter-chart
  - href: en/operations/chart/add-parameter-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
title: How to add a parameter to a chart in DataLens On-premises
description: Follow this guide to add a parameter to a chart in DataLens On-premises.
canonical: en/operations/chart/add-parameter-chart.html
vcsPath: en/operations/chart/add-parameter-chart.md
---

# Adding a parameter to a chart in DataLens On-premises

{% note info %}

* Parameters added at the chart level are only available in this chart.
* If a dataset has a parameter with the same name, the chart parameter is ignored.

{% endnote %}

To add a [parameter](../../concepts/parameters.md) to a chart:


1. In the left-hand panel, click <!-- diplodoc:svg ![image](../../_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-ifl6twfr__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-ifl6twfr__a"><path fill="currentColor" d="M0 0h16v16H0z"/></clipPath></defs></svg> **Charts** and select the chart to add a parameter to.
1. On the left side of the screen above the list of dataset fields, click <!-- diplodoc:svg ![image](../../_assets/console-icons/plus.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="M8 1.75a.75.75 0 0 1 .75.75v4.75h4.75a.75.75 0 0 1 0 1.5H8.75v4.75a.75.75 0 0 1-1.5 0V8.75H2.5a.75.75 0 0 1 0-1.5h4.75V2.5A.75.75 0 0 1 8 1.75" clip-rule="evenodd"/></svg> and select **Parameter**.
1. In the **Add parameter** window, specify:

   * **Name**: Sets the parameter name.
   * **Type**: Defines the parameter data type: **Date**, **Date and time**, **Fractional number**, **Boolean**, **String**, or **Integer**.
   * **Default value**: This is a required value. It is used when no parameter value is set on the dashboard, chart URL, or chart settings.

1. Click **Add**.

## Changing the default value {#change-value}

You can change the default value of a dataset parameter at the chart level:

1. Click the icon to the left of the parameter name.
1. In the **Edit parameter** window, set a new parameter value.
1. Click **Save**.

## Resetting the default value {#to-default}

To reset the default parameter value from the dataset:

1. Click the icon to the left of the parameter name.
1. In the **Edit parameter** window, click **Initial value**. The default parameter value will be reset to its original value from the dataset.
1. Click **Save**.

You can also create parameters [at the dataset level](../../dataset/create-dataset.md#add-parameters).
