---
description: >-
  Date Range Switches can be used to allow your users to group charts by
  selected time intervals
---

# Date Group Switch

A Date Group Switch can be linked to charts to configure which time interval the chart is grouped by. This allows your users to select daily, weekly, monthly, or yearly views of their data.

{% hint style="info" %}
The date group switch can only be linked to certain charts such as bar charts and line charts. It also requires a the data to be grouped by a date field.
{% endhint %}

![Example of configured Date Group Switch](https://2280154036-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQY7AWezpSx_iDLogun%2F-MgqRsliRVzNyo1iEPWN%2F-MgqiYpOxRIFXMXZRP6o%2Fezgif.com-gif-maker%20\(3\).gif?alt=media\&token=181bd703-e60b-484a-8a89-b5611002eaec)

To configure a date group switch, first drag the component onto the dashboard.

![](https://2280154036-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQY7AWezpSx_iDLogun%2F-MgqRsliRVzNyo1iEPWN%2F-MgqjdGEqXRLraJ0m1-L%2FScreen%20Shot%202021-08-11%20at%203.43.03%20PM.png?alt=media\&token=5ad92cbe-e2cb-4bf0-81e7-aec5b6830603)

Next, select the chart you want to link, and click on the arrow beside the date field to group on. Select Date Group Swith under user inputs.

![](https://2280154036-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQY7AWezpSx_iDLogun%2F-MgqRsliRVzNyo1iEPWN%2F-MgqjsaebJqKqcwSpZRd%2FScreen%20Shot%202021-08-11%20at%203.45.04%20PM.png?alt=media\&token=065dad87-f20b-49a6-b6ff-34edeb2741d0)

Select the correct component from the dropdown below.&#x20;

&#x20;Your chart will now be configured to change based on the data group selected.
