This Gist is there to help you creating a Sankey Diagram from your Google Spreadsheets.
Changes:
- update usage instruction for new Apps Script IDE
- does not need document Id (@steren)
- supports named sheet (not default, see customization in
code.gs
) - shows total values (default, see customization in
code.gs
to disable) - added some comments in
code.gs
to highlight customization options
- Open a spreadsheet
- Click "Extensions" -> "App Script"
- create the two files
code.gs
andindex.html
and paste to code of this gist - insert the document ID from the URL on line 10,
code.gs
- select which sheet is the base for the sankey diagram
- save the project (no need to deploy)
- the layout of the table should be as shown in the Example Spreadsheet
- reload the sheet and click "Custom Scripts" -> "SankeyDiagram" (it can take a view seconds to load the new menu and the diagram)
- in case of a private sheet you have to authorize the script (probably marked as unsave developer, but it should be your own google account)
- Open the same document
- Click "Custom Scripts" -> "SankeyDiagram" (it can take a view seconds to load the new menu and the diagram)
only for format reference, does not show diagram https://docs.google.com/spreadsheets/d/1IUmvhYuuBvfYEu8OfDczmW6LQW-xaeh5c6rklOg3x-o/