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!
- Install this bookmarklet: bigfunctions (it has to be done only once)
- Open BigQuery console
- 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.
- 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.
- Run the query of the example and open the result of the latest subquery. The result will be shown as a nice html content.
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)])