April flowers

Spring comes but once in a lifetime The season of flowers Birdsong and young lovers When everything fits like a rhyme We were young, we were in our prime For one glorious hour The petals held the…

Smartphone

独家优惠奖金 100% 高达 1 BTC + 180 免费旋转




Displaying BigQuery results on Google Maps using Data Studio

Data Studio has a Google Maps layer

What if you want a map that looks like this?

How visits to retail and recreation establishments vary across the USA. Green dots indicate counties where visits have fallen a lot and red dots indicate where visits are about the same.

The query above consists of these parts:

The resulting data looks like this:

In the BigQuery web console, click the button to “Explore Data” and choose Data Studio.

Select the Google Maps layer (see figure below)

Change the Bubble location to “marker” and edit the type to be Geo > Latitude, Longitude.

Remove the Bubble size — we want all dots to be the same size.

Change the Bubble color field to be mobility.

Then, switch over to the Style tab. Increase the number of bubbles to 5000. Then, change the colors so that max=Red, medium=yellow, and min=green as shown below.

You will now have a dashboard that looks like the one at the beginning of this article. Let’s now build a dashboard that also shows the number of cases.

Use this query to join the confirmed case counts from the New York Times (it’s also public dataset in BigQuery):

The result will look something like this:

Note the differences in behavior and outcomes between Colorado and Texas …

Enjoy!

Add a comment

Related posts:

5 Key Learnings In Crisis

Many of us are trying to decipher some level of meaning in the Covid-19 crisis. I must admit, I’m unable to find any. This is an act of nature, an act of environment. I see no message in either the…

How to Tokenize a asset on AEternity blockchain for supply chain

AEternity blockchain is an Erlang-based scalable smart contract platform engineered by programming pioneers to address some of the most fundamental challenges native to earlier blockchains. By…

Montevideo y la pandemia. Parte 9

Una doctora de confianza me cuenta que sus padres y su hermano dieron positivo en los test de coronavirus. Su padre estuvo tres días en cuidados intensivos. A pesar de eso, los casos que anuncian en…