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.