Skip to content

bigfunctions > sankey_chart

sankey_chart

Signature

sankey_chart(data)

Description

Return html with a Sankey Google chart

See the result as a data visualization in BigQuery Console!

The result of this function can be vizualized as an html report directly in BigQuery Console!

  1. Install this bookmarklet: bigfunctions (it has to be done only once)
  2. Open BigQuery console
  3. Click on the installed bookmarklet.
    • From now on, the bookmarklet code will observe the BigQuery console page.
    • If a BigQuery result appears with a unique cell containing html content, it will be rendered.
  4. You will have to click on the bookmarklet again:
    • If you refresh the Bigquery console page,
    • If you open the BigQuery console in a new tab of your browser.
  5. Run the query of the example and open the result of the latest subquery. The result will be shown as a nice html content.


bookmarklet usage

Examples

select bigfunctions.eu.sankey_chart([('event1', 'event2', 12), ('event1', 'event3', 12)])
select bigfunctions.us.sankey_chart([('event1', 'event2', 12), ('event1', 'event3', 12)])
select bigfunctions.europe_west1.sankey_chart([('event1', 'event2', 12), ('event1', 'event3', 12)])