Visualizing Geographic Data using Google Data Studio

In this blog post I’ll provide some examples of how to visualize Geographic data using Google Data Studio.

UPDATE: You can now visualize geographic data using Google Maps

Since this was written there have been some big changes to Google Data Studio. One major changed was the inclusion of Google Maps as a chart type.

A google map showing Sydney Australia in Google Data Studio

You can read more about using Google Maps to visualize your Geographic Data at this link.

Visualizing Geographic Data using Google Data Studio

For this example of how to visualize Geographic data in Data Studio I’ll use a table listing the world’s tallest buildings.

Here’s an example of how the table is structured:

RankBuildingCityCountryHeight (m)Height (ft)FloorsBuilt
1Burj KhalifaDubaiUnited Arab Emirates8282,7171632010
2Shanghai TowerShanghaiChina6322,0731282015
3Abraj Al-Bait Clock TowerMeccaSaudi Arabia6011,9711202012
4Ping An Finance CentreShenzhenChina5991,9651152017
5Lotte World TowerSeoulSouth Korea554.51,8191232016

Now let’s see if we can visualize the data in Google Data Studio.

The first step is to add the data, which I’ve placed in a Google Sheet.

We’ll need to make sure that the field City is listed as a Geo data type. This will allow the data to be displayed on Geo Maps in Data Studio.

When then need to confirm we are fine with having City as a ‘Town/City’ geo data type.

Changing City from text to Town/City

We now add the data to the report.

A list of fields in our data source

We click ‘Add to Report’ to add to Data Studio.

Adding a data source to the data studio report

Creating a ‘Count’ Custom Field

But we need a count of all the different Building.

To do this we create a custom field called ‘Count’.

Adding a field. Add a field in data studio

We click ‘Add a Field’ and then use the following formula:

COUNT_DISTINCT(Building)

This counts each individual Building name as ‘1’.

Count distinct metric in google data studio

Creating Geo Maps in Google Data Studio

Once we have our Count field we can create some maps.

Click on ‘Add a chart’ and then choose a custom Geo Map.

Visualizing Geographic Data using Google Data Studio. A list of chart types.

To create the map we will use the dimension Country and the metric Count.

Visualizing Geographic Data using Google Data Studio

We now have a world map counting the number of buildings in each country.

But we’d also like to create a world map showing which cities have the most tall buildings.

So we can copy and paste the world map we already created.

two geo maps in google data studio.

We then change the dimension ‘Country’ to ‘City for the map.

We now have two different world maps. One showing the number of tall buildings in each country, while the other shows the number of tall buildings in each city.

Two geo maps but with different ways of visualizing geographic data

The finished Geographic Data report in Google Data studio

Below is the finished Data Studio report, with a table listing the world’s tallest buildings.

I hope you found this blog post about how to visualize geographic data in Google Data Studio useful.

My Other Blog Posts

If you liked this blog post, you might enjoy some of my previous articles.

Michael Howe-Ely