This Gist is there to help you creating a Sankey Diagram from your Google Spreadsheets.
- Open a spreadsheet
- Click "Tools" -> "Scripts"
- create the two files
code.gs
andindex.html
- insert the document ID from the URL on line 10,
code.gs
- select which sheet is the base for the sankey diagram
- the layout of the table should be as shown in the Example Spreadsheet
- Open the same document
- Click "Zusatzfunktionen" -> "SankeyDiagram"
https://docs.google.com/spreadsheets/d/1IUmvhYuuBvfYEu8OfDczmW6LQW-xaeh5c6rklOg3x-o/
I forked the code to fix a few issues I had with it.
You can now use any sheet from a spreadsheet, have other data in columns further away, and copy a PNG image from the dialog that you can paste in your spreadsheet.
https://gist.github.com/maximeborges/31b7bfe5e3d4d8e31163702ebb802631