Sankey Open Studio Open the app

How to use Sankey Open Studio

Free and open source. Everything runs in your browser and your data never leaves your computer.

Your data, in three columns

A sankey diagram is a list of flows. Each flow has three parts: where the money or quantity comes From, where it goes To, and the Amount.

FromToAmount
Retail SalesRevenue4200
WholesaleRevenue1800
RevenuePayroll1900
RevenueNet Profit1200

Set up these three columns in Excel or Google Sheets, copy them, then click Paste from spreadsheet in the Data panel and paste. A header row is fine, and dollar signs or commas in amounts get cleaned up automatically. You can also type flows straight into the table with + Add flow.

A node's total is calculated for you as the larger of what flows in and what flows out. If a middle node like Revenue looks unbalanced, check that the amounts on each side add up.

Editing nodes

Click any node (the solid bar) on the diagram to open its settings. There you can change its display label, give it a color, replace the second line (normally the amount) with your own text, and add an optional third line, like a note or a year over year change.

Long labels wrap on their own, and you can also control exactly where a label breaks. Type a | in the display label wherever you want a new line, so Special Funds | (user fees) renders as two lines split at the bar.

Drag any node to nudge it around the canvas. Your adjustments are remembered, even after you add more data. Reset node positions in the Layout panel puts everything back to automatic.

Coloring the diagram

  1. Presets. The Colors panel has 20 ready made palettes. Click one to color every node at once.
  2. One node. Click the node and pick a swatch or a custom color.
  3. One flow. Click any line to give that flow its own color. The Automatic button hands it back to the Flow color rule.
  4. Flow color rule. By default lines are neutral gray. In the Colors panel you can make every line match its source node or its target node instead.

Title and labels

The diagram title is the name at the top of the page. The Title panel lets you resize it, recolor it, or hide it. The Labels panel controls the font size, whether labels sit outside or inside the diagram, decimal places, and the prefix and suffix on amounts, so 4930.4 can display as $4,930.4M.

The small "created with" line at the bottom of the image can be turned off in the Labels panel.

Saving and backups

Every change saves automatically in your browser, and My diagrams holds as many diagrams as you like. Saving is per browser on this computer, so for anything important, or to move a diagram to another machine, use Download → JSON backup. The Restore from JSON button brings a backup file back in as a new diagram, with every color, position, and setting intact.

Clearing your browser's site data deletes saved diagrams. A JSON backup is your safety net.

Downloading your diagram

SVG is best for print and slides, it stays sharp at any size. PNG is a high resolution image ready for email and social posts. JSON backup is the diagram's data for restoring later.

Limits and quirks worth knowing

Quick answers

Sankey Open Studio is free and open source under the MIT license.
Made by Olin Lagon · Source on GitHub · Privacy & terms