# Sankey Diagrams within Google Spreadsheets > This Gist is there to help you creating a Sankey Diagram from your Google Spreadsheets. ## Installation - Open a spreadsheet - Click "Tools" -> "Scripts" - create the two files `code.gs` and `index.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](https://docs.google.com/spreadsheets/d/1IUmvhYuuBvfYEu8OfDczmW6LQW-xaeh5c6rklOg3x-o/) ## Usage - Open the same document - Click "Zusatzfunktionen" -> "SankeyDiagram" ## Example Spreadsheet https://docs.google.com/spreadsheets/d/1IUmvhYuuBvfYEu8OfDczmW6LQW-xaeh5c6rklOg3x-o/