dan's internet pad

Overview

Google Data Studio is a tool engineers and analysts can use to visualize and present data. It is the equivalent of using Excel or Google Sheets to generate graphs and plots but for data in different data stores (eg. Google BigQuery).

I became acquainted with Data Studio through work. I had a large dataset and results from a very large processing job that I wanted to turn into a report. The data was in Google BigQuery, a datawarehouse on GCP. In the past, my workflow may have been to:

Both solutions are fine. I have used them successfuly in the past. But I felt like there was something better and more convenient. When digging into the integrations for BigQuery, I saw you could use Google Sheets or Data Studio to visualize the data.

The Google Sheets integration worked but wasn’t easy to deal with. I tried Data Studio and ended up loving it.

Data Studio + BigQuery

Like many data visualization tools, you just link your data source with the tool. Since both BigQuery and DataStudio are google products, integrating them was seamless.

Once you integrate the data store, you can easily create line charts for time-series data, pie charts for distributions and more.

To showcase this, I will guide you through how I made a visualization for Hacker News Data available on BigQuery!

Analyzing Hackernews data with Data Studio

Add the hackernews bigquery data to Data Studio

  1. Navigate to google.datastudio.com
  2. Click on add a data source in the top left
  3. Select a BigQuery dataset
  4. If you don’t have a Google Cloud Platform project for this, create one
  5. Select your project for billing purposes.
  6. Select public datasets
  7. Select the hackernews.full table

Create some toy visualizations

  1. Create a new DataStudio Report
  2. Click add data. Add the hackernews full table to the report. You can now use it for visualizations.
  3. View the table schema to see what types of data is available (Eg. posts, comments, submitters, etc.)

The user interface for creating visualizations is quite nice and intuitive. Left as an exercise to the reader.

Some items I investigated were:

Cool things about Data Studio

My example dashboard

To view the live dashboard, click here.

To view the exported pdf, click here.

I have also include all images embedded below.

Data Studio Page 1 Data Studio Page 2 Data Studio Page 3 Data Studio Page 4 Data Studio Page 5 Data Studio Page 6

#Blog #Project #Tech