Sankey diagrams are a kind of flow diagram, in which the width of the arrows is shown proportionally to the flow quantity. They are typically used to visualize energy or material or cost transfers between processes.
Questions tagged [sankey-diagram]
752 questions
0
votes
0 answers
Sankey Diagram in R with networkD3 giving blank ouput
I'm trying to create a Sankey diagram of before/afters from a survey. The categories are "Never", "Rarely", "Sometimes", "Often", and "Always". I have a total of 10 nodes because there are some circular ones so when I had 5, it made a weird looking…

bmatt23
- 13
- 3
0
votes
0 answers
How to add percentage to links in a Sankey Diagram?
#Making sankey of the data where there is source target and values and I want to show the percentage on the link from one node to another based on the source node.
p <- sankeyNetwork(Links = links2, Nodes = nodes2,
Source…

Siddharth Bhatia
- 45
- 2
- 8
0
votes
1 answer
Create group and change node and links color in an interactive Sankey with the networkD3
How can I create a group for nodes and links and color them accordingly on Sankey plots using networkD3 in R? this excellent example shows the steps on data formatting.
Here is the code and plot from the example there, I want to add color by groups…

Lily Nature
- 613
- 7
- 18
0
votes
0 answers
How to get this data formatted in this way in order to be displayed by a sankey chart
Im using https://www.highcharts.com/ to generate a sankey chart which expect a certain data format in order to be correctly rendered, my issue is how to parse my data and change it to the format that highchart needs.
I have this:
$data = [
[…

Duarte Andrade
- 69
- 3
- 9
0
votes
0 answers
Summary text to Sankey diagram in python
I am thinking to make a automatic program to plot of Sankey diagram about a simple index (from a book for example).
The idea is easy but I don't know how I can start. I think the biggest problem is to trasladate a text to a table. Maybe sombody did…

Droid Lopez
- 21
- 1
0
votes
0 answers
change to a specific color the node of Sankey Diagram Google Charts
im trying to set all the right nodes to a list of colors and the left nodes to other colors, i mean all left nodes should be a colors of ARRAYCOLORS1 and right nodes ARRAYCOLORS2. I know i can set the nodes colors with sankey.node.colors but my data…

AgusSn
- 9
- 2
0
votes
0 answers
Add/change link frame color in sankey diagram
Is there a possibility to to change the frame color of link in a Sankey diagram?
So far I have the following code:
from plotly import graph_objects as go
label = ['Start', 'Intermediate', 'End']
source = [0, 0, 1]
target = [1, 2, 2]
value = [50,…

TiTo
- 833
- 2
- 7
- 28
0
votes
0 answers
d3 sankey chart links are not dragging
I’m having a problem dragging the links in this Sankey chart. The nodes are dragging fine, but the links are not moving, I think I'm not selecting the links correctly. If someone could help me out, I would really appreciate it! Here’s the…

this.mig123
- 13
- 2
0
votes
1 answer
Isolate path in Sankey Diagram using r-plotly
The Sankey plot I created has lots of nodes and links therefore I would like to isolate the path starting from the first source node as a separate plot using plotly in R. Using the example below from the plotly documentation how would I isolate…

te time
- 485
- 3
- 9
0
votes
1 answer
filter data and update d3.js sankey diagram in react
i want to make a react app that allows to filter a sankey-diagram with a slider.
I'm rather new to react, so i'm still a bit overwhelmed.
This is the current state:
https://codesandbox.io/s/react-d3-sankey-3gbfjh
The code for the sankey Diagram is…

sisyphos
- 33
- 4
0
votes
1 answer
Sankey arrows Inverts when plotting with connect
I am trying to plot a Sankey plot using the matplotlib code below. The code works fine when I try to plot them separately. However, when I combine them, the direction of 'one' of the arrows is opposite when plotted combined.
I tried to troubleshoot,…

Ep1c1aN
- 683
- 9
- 25
0
votes
0 answers
Multi-level Sankey in Plotly without looping when categories repeat?
I want to visualize category membership and looking to do it with a go.sankey diagram but the examples I have found are not very clear.
My dataframe looks like…

idontknowmuch
- 81
- 7
0
votes
1 answer
Keep order in Sankey diagram when applying filters in Power Bi
I have a basic Sankey diagram with weights. I ordered the nodes manually.
Sankey without filters
When I apply a filter the order is moved and nodes are overlapped:
Sankey with filters
Is there a way to keep the order of the nodes and prevent them…
0
votes
0 answers
Add Icons to nodes in Sankey Chart implemented through React Google Charts Package
I've used React Google Charts Package to implement Sankey graph in the project.
However I want to add custom icons to the nodes in the sankey graph. I've looked over the documentation google charts API and package documentation however no luck.
If…
0
votes
1 answer
networkD3 Sankey diagram - how to deal with multiple flows between source and target groups
For an analysis, I want to visualize movements between customer groups with a Sankey plot with the network3D:sankeyNetwork() function. However, I encountered the following issue: in most cases, flows are between a source group (say group A) and a…

Liri
- 350
- 3
- 19