Tableau has extensive mapping capabilities with multiple configurations to represent your data geographically. Filled map is a chart type in which different geographic territories can be represented on the map with areas colored based on a measure or dimension. In this guide, you will learn how to create filled maps in Tableau along with the relevant use cases.
To plot a geographical dimension like country or state on a map, the text field in the dataset must be assigned a corresponding geographical role. Right-click the dimension in the side bar and choose a geographical role, as shown below.
The abc symbol beside the dimension is changed to a globe once the geographical role is assigned, as shown below. The corresponding latitude and longitude coordinates are generated automatically by Tableau's built-in map server once the geographical role is assigned to the selected field.
Note: This is an essential prerequisite step. Without assigning the correct geographical role and generated geo-coordinates, Tableau cannot plot the field on a map.
There are several ways to create filled maps.
When you double-click on the dimension with an assigned geographical role, the map is plotted with the dimension on the details card, and the latitude and longitude pills are placed on the rows and columns.
Next, click on the dropdown menu in the marks card and choose the map option, as shown below.
This results in a filled map, as shown below.
To display the state names and any other measures on the map, drag and drop them onto the labels marks card. In order to leverage the color property for displaying insights on the map, drag and drop a measure or dimension onto the color marks card.
As shown above, the filled map intuitively reflects the sales across various US states geographically by leveraging the color attribute in the visual.
Another technique for creating a filled map is to click on the dimension with an assigned geographical role to select it and then click on the filled map icon in the Show Me menu, as shown below.
This results in the filled map, as shown below.
Now, drag and drop the region dimension onto the color marks card and state onto the labels mark card. The resulting filled map is as shown below.
Such filled maps can be used to show dimension-based geographical distributions and enable the user to use the map to filter or highlight the data in other visuals based on the dimension.
Note: The same steps can be followed if you face issues using fields with another geographical role, such as ZIP code or city, but remember that even though many geographical roles are international, some are limited to the U.S. only.
This guide covered how to create a filled map in Tableau and discussed use cases and troubleshooting tips. Apart from filled maps, symbol maps can also be created in Tableau with in-built or custom shapes as well. To learn more about mapping capabilities in Tableau, check out this amazing course. To learn about zooming and panning in Tableau maps, refer to this guide.