[Yandex Cloud documentation](../../../index.md) > [Yandex DataLens](../../index.md) > Charts > Chart parameters > Adding parameters in dashboard chart settings

# Adding parameters in the dashboard chart settings in Yandex DataLens

To set a [parameter](../../dashboard/dashboard_parameters.md):


{% 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/layout-cells-large.svg) **Dashboards** and select the dashboard you need. If you do not have a dashboard, [create one](../dashboard/create.md).
1. In the top-right corner, click **Edit**.
1. Select a chart for which you want to set a new parameter.
1. In the top-right corner of the chart, click ![image](../../../_assets/console-icons/gear.svg).

   ![image](../../../_assets/datalens/parameters/chart-settings-open.svg)

1. In the window that opens, click ![image](../../../_assets/console-icons/chevron-down.svg) **Parameters**.
1. Click ![image](../../../_assets/console-icons/plus.svg) **Add parameter** at the bottom of the list.
1. In the **Name** column, enter the parameter name (key).
1. In the **Value** column, click ![image](../../../_assets/console-icons/plus.svg) and set a value for the parameter. You can set multiple values.

   ![image](../../../_assets/datalens/parameters/chart-add-parameters.svg)

1. Click **Save**.
1. In the top-right corner of the dashboard edit window, click **Save**.

{% cut "Chart on a dashboard without a parameter" %}

![image](../../../_assets/datalens/parameters/dashboard.svg)

{% endcut %}

{% cut "Chart on a dashboard with a parameter" %}

![image](../../../_assets/datalens/parameters/dashboard-with-parameter.svg)

{% endcut %}

#### Example of parameters with intervals {#parameter-interval-examples}

{% cut "Example of adding a parameter with a date interval" %}

To set the date and time [interval](../../dashboard/dashboard_parameters.md#interval) between `03-08-2018 09:00:00` and `10-08-2018 10:00:00`, set the parameter to `__interval_2018-08-03T09:00:00_2018-08-10T10:00:00`.

![image](../../../_assets/datalens/parameters/date-interval-example.png)

{% endcut %}

{% cut "Example of adding a parameter with a relative date" %}

To set the date and time interval from the beginning of the last week of 2018 until today, set the parameter to `__interval_2018-12-23___relative_+0d`.

![image](../../../_assets/datalens/parameters/iso-date.png)

To build relative statistics for the beginning of the year, change `__relative_-0d` to `__relative_-0y_sy`.

{% note info %}

If castings are not specified, then for units of day and longer, the time is cast to the start of the day, i.e., `00:00:00.000`; for shorter units, the current time is used.

{% endnote %}

{% endcut %}