[Yandex Cloud documentation](../../../index.md) > [Yandex DataLens](../../index.md) > Charts > Chart parameters > Adding parameters to a chart

# Adding a parameter to a chart in Yandex DataLens

{% 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:


{% note warning %}

If you use the new DataLens object model with [workbooks and collections](../../workbooks-collections/index.md):

1. In the left-hand panel, select ![collections](../../../_assets/console-icons/rectangles-4.svg) **Collections and workbooks**.
1. Open the workbook you need and select an object.

Proceed with this guide from Step 2.

{% endnote %}


1. In the left-hand panel, click ![image](../../../_assets/console-icons/chart-column.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 ![image](../../../_assets/console-icons/plus.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).