How to add a filter or time slider to your Projection map
Our Projection map template lets you supply multiple columns of data and choose between different controls: buttons, dropdowns, and time sliders. This is really useful if you'd like to give the user the option to shade by a few different columns of data, or to show how something developed over time in a geographical context.
To create a map with a filter or time slider...
- To add controls to your Projection map, start by uploading your data. To add a time slider or a filter, you should have several columns with values. In our time slider example, we have a column of data for each week. Your Regions data sheet should look something like this:
- In the Preview tab, within the Regions settings, go to the Controls settings and select which control you would like to use.
In addition to the type of control (dropdown, button group, time slider) you select, there are a number of other settings to choose from, such as the time between steps.
- When visualizing datasets with different magnitudes of data across the different columns, you might want to set the legend to update based on the current column instead of based on all columns. You can do this in the Regions settings.
This determines whether or not to update the default color scale when switching between Value columns. Note that any non-default scale settings (such as custom bin thresholds) will always apply across all columns.
TIP: We only recommend basing the scale on the currently selected column if you are shading values across different scales, magnitudes or units. If you would like to be able to compare the different columns of data, it would make more sense that they are colored by the same min and max across both columns. You can learn more about this in this help doc.