Skip to content
This repository was archived by the owner on Aug 3, 2023. It is now read-only.

Data Studio

Alexander Diemand edited this page Nov 14, 2022 · 7 revisions

Description

Open https://datastudio.google.com and start building dashboards in Data Studio visualising blockchain data.

Examples

Chainview dashboard

Cardano Chainview🔗 shows a number of graphs about what is happening on the blockchain. You can copy this dashboard and adapt it to your needs.

image

Example: query transaction and block data

example Data Studio report

DataStudio_screenshot

Walkthrough

BigQuery provides seamless integration with Google Data Studio.

To import the data into the Data Studio:

  1. Create a new report
  2. Select the BigQuery option:

Select the table you would like to use as your data source, for example let's use the transactions table `tx` to view the number of transactions per day: Screenshot 2022-10-17 at 10 27 39 AM_2

Create a new chart, a bar chart for example: Screenshot 2022-10-17 at 10 32 35 AM

On the right the dimension selected is the `tx_hash`. We would like to view the count of records in the dimension of date. Thus we would need to create a new field in each row, with the date of the transaction, by clicking on the "Add a field" option: Screenshot 2022-10-17 at 3 47 08 PM

We can simply use the built-in `DATE` function to select the date from the block: Screenshot 2022-10-17 at 11 03 54 AM

We can also add a new field to calculate if the transaction included a script or not. For example we'll add 1 if the script size is bigger than zero or 0 if it wasn't: Screenshot

Adding all the things together, we put the new field block date as a dimension and the the sum of the `has_script` field that we created in the "Metric". In this way we can view the total number of transactions per day, as well as the number of transactions with scripts. Screenshot 2022-10-17 at 11 06 47 AM

You can now be creative and build various charts using the Cardano mainnet dataset!

See more examples in this Data Studio report.

Clone this wiki locally