Learn how to add filter elements that let your users refine data used in charts, maps, and tables.
Filter elements let your users control which records (rows) from a dataset are displayed in visual elements like charts, maps, and tables. They introduce dynamic interactivity to your visualization, supporting a wide range of use cases, such as filtering by categories, dates, or numerical ranges.
Filter elements are highly flexible:
You can add a Filter element to your visualization by selecting Insert in the Toolbar and dragging a Filter onto the canvas. Alternatively, click the Filter icon that appears when hovering on an empty Section.
Filters can be configured by selecting an existing filter element and using the options available in the Filter tab in the right panel. These options are detailed below.
If you need to control the visibility of data series in wide-format datasets, use Selector elements instead of filters. Selectors manage which dataset fields (columns) are shown, while filters control which dataset records (rows) are shown.
In the Setup section, under the Filter tab, you can configure the following options:
In the Dataset section, you can select the dataset that provides the values for your filter. If you need to add a dataset, this can be done by selecting New Dataset in the Project tab.
If you are on the Pro plan, you can upload your own files (in csv format) to use as datasets, by clicking New Dataset and then Upload Dataset.
After selecting a dataset, choose the Filter Field—the column that contains the values users can filter by. The available values in this field will populate your filter element.
You can optionally enable the Prefilter Dataset switch, which lets you filter the data that is supplied to the filter element itself. This is useful when you want to limit which filter options are available to users.
In the Connections section, you can connect your filter to charts, maps, tables, and other elements in your visualization.
Select Target Elements to choose which visual elements should be affected by this filter. When users make selections in the filter, only the connected elements will update to show the filtered data.
You can connect a single filter to multiple elements, and each element can be connected to multiple filters. The filter will affect any connected element that has a field (column) with the same name as the Filter Field.
When Display Style is set to "Checkbox", the following options are available:
When Display Style is set to "Dropdown", the following options are available:
When Display Style is set to "Slider", the following options are available:
The slider option is only available when the Filter Field contains numeric data.
Filter elements can inherit colors from connected charts and maps, creating a cohesive visual experience. Color inheritance works as follows:
To use the same filter element to control multiple elements with different datasets—especially when the values in their respective Color Fields don't align perfectly—consider creating a separate dataset containing a field with all values you wish to assign colors to. Then, configure the filter element to use this dataset and select the comprehensive field as the Filter Field. This approach ensures the filter lists all possible values while still applying colors from the connected charts and maps.
Filter elements can be adapted for several use cases in the Advanced Logic section:
To keep certain records visible in charts, maps, or tables without listing them in a filter element, leave the Filter Field blank for those records and enable Show Null Values. For example, if you want a baseline variable to always appear while letting the user switch between comparison variables, create a Filter Field that is empty for baseline records and contains values for comparison variables; then set this as the Filter Field and turn on Show Null Values.