6.2.5 Sankey Chart
Last updated
Last updated
Sankey diagrams visualize the contributions to flow by defining source
to represent the source node, target
for the target node, value
to set the flow volume, and label that shows the node name.
if a flow is twice as wide it represents double the quantity. Flows in the diagram can show e.g. energy, materials, water, or costs.
The link is a dictionary containing data about the connections we want to draw.
The source and target are lists of indexes for the nodes Plotly will connect.
The value is a list of numbers that will define the width of these connections.
It's very easy to make the chart in vertical, just address orientation = 'v'
. However, the horizontal Sankey chart is in common use.