Skip to content
Plotly templates

Sankey (Plotly)

Multi-stage flow with named nodes.

Template previewPlotly
Rendering…

Make it your own.

{
  "data":[{"type":"sankey",
    "node":{"label":["Coal","Gas","Solar","Wind","Electricity","Residential","Industrial","Loss"],"pad":12,"thickness":15},
    "link":{"source":[0,1,2,3,4,4,4],"target":[4,4,4,4,5,6,7],"value":[8,4,2,3,7,8,2]}}],
  "layout":{"title":"Energy flow"}
}