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
1 answer
How to model data for race results in PowerBi?
I have data where a constant set of athletes compete in the same race every month. Each get a position 1st, 2nd... etc
I was wondering what visualization to choose to see the position results for rach race through time. I was thinking a sanke…

SQALEX101
- 209
- 1
- 3
- 16
0
votes
2 answers
Add title and axis labels to riverplot?
I'm trying to make a Sankey diagram using the riverplot package, and was wondering if it's possible to add a title and axis labels to the plot. To keep it simple I'll use one of the sample riverplots from the package:
nodes <- c( LETTERS[1:3]…

Mary
- 27
- 4
0
votes
2 answers
How to convert longitudal data to connection data?
I have data in a form of:
id state
1 s_1
1 s_2
1 s_3
2 s_1
2 s_3
3 s_1
3 s_2
And I'd like to have it in connecion data frame:
source target freq
s_1 s_2 2
s_1 s_3 1
s_2 s_3 1
I already know I can calculate the frequencies…

Tom
- 339
- 2
- 9
0
votes
1 answer
Highcharts sankey draggable nodes
I have been trying to create a HighCharts sankey diagram with draggable nodes.
This should be possible from the documentation, but I am not able to get it working.
Is this possible in the first place and how can I achieve this? Can someone share a…

Thijs van Dongen
- 1
- 1
- 1
0
votes
0 answers
d3.js, sankey and bootstrap: change all colors
I'm using d3.js and sankey in my application. I created a simple HTML file with the sankey and the result is the follow (exactly what I expect):
I did a quick cut and paste in the application in ASP.NET Core with Bootstrap and the result is this…

Enrico
- 3,592
- 6
- 45
- 102
0
votes
1 answer
R (networkD3) Sankey Diagram left AND right sinking?
I am trying to produce a Sankey diagram with the help of this page:
https://www.r-graph-gallery.com/321-introduction-to-interactive-sankey-diagram-2.html
Now, I modified the data a bit, and was wondering if I can right and left-sink the nodes, i.e.…

SAPfz
- 1
- 1
0
votes
1 answer
D3 Sankey link scaling issue
I need to draw a sankey chart to show associations. I have scaled the nodes using d3.scaleLinear() to give meaning to small nodes as well but the links are not scaling as per nodes. I have tried link scaling as well but it is not working.
//node…

Sam
- 3
- 2
0
votes
1 answer
Editing Python Matplotlib Sankey (removing values, align texts..)
I'm new to the Sankey diagram function in Matplotlib and I hope someone is able to help me with some things, since I cannot figure it out it seems.
First of all: I used the following example to understand how to create a Sankey…

Ganesh Gebhard
- 453
- 1
- 7
- 20
0
votes
1 answer
Modify link and node colours in Sankey with NetworkD3
I want to change the colours of the node and links in my Sankey. Unfortunately d3.scale.Ordinal() function doesn't work for me.
Do you have any idea?
Idealy, the Nodes on the left hand side should have the same colours as the links leaving these.
If…

Thessie
- 1
0
votes
1 answer
ggplot R Sankey diagram, alluvial?
I'm trying to make a Sankey diagram in R using the alluvial package (https://cran.r-project.org/web/packages/ggalluvial/vignettes/ggalluvial.html). So far, I can replicate many of the examples that I've found. However, I'm specifically trying to…

Dasr
- 777
- 6
- 16
0
votes
1 answer
Plot for sankey diagram is empty
Empty plot
I'm new to python/spyder, and I'm trying to make a sankey diagram, but no data is included in the plot, it's just empty. I found out that I need to convert from dataframe to lists, but this hasn't helped, and the plot is still empty. I…

Tilde Lyngsø
- 3
- 3
0
votes
0 answers
Sankey Diagram, I want to show larger values in the bottom and smaller values on top
I want to achieve this graph below.
So far I have tried the following approaches:
Please please help me out. Any help would be highly appreciated! I just need to invert the positions of Hired and Rejected bars.
React Google Graphs - Sankey…

sakina
- 109
- 1
- 6
0
votes
1 answer
Dataframe to Sankey Diagram
I want to generate a Sankey Diagram from product data looking like this.
id begin_date status
1 01.02.2020 a
1 10.02.2020 b
1 17.02.2020 c
2 02.02.2020 d
2 06.03.2020 b
…

Dustin
- 483
- 3
- 13
0
votes
0 answers
Sankey diagram with timeseries data
Suppose I have the following timeseries data tracking events:
(Note the Timestamp is a full datetime.) Would it be possible to build a Sankey diagram in SQL based on the above three fields, or is this a graph that can't really be done in SQL but…

David542
- 104,438
- 178
- 489
- 842
0
votes
1 answer
Colab: Python and Sankey in Plotly
I've got some simple code to test Sankey charts. It seems to stop before rendering the last "merging" flows to the last node. Any help / suggestions?
import plotly.graph_objs as go1
# one merged line - CORP01 bought CORP02
# second, occurring after…

lucholland
- 528
- 5
- 14