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
6
votes
1 answer
Sankey Diagram in R with networkD3 - row number issues
I'd like to focus on the flow highlighted above connecting the blue 'Thermal generation' block to the pink 'Electricity grid' block. You'll notice that the flow is 526 TWh, which is row #62 from Energy$links.
Energy$links
source target …

Display name
- 4,153
- 5
- 27
- 75
6
votes
1 answer
Change the color of nodes in rCharts sankey diagram in R
I have made sankey diagram using rCharts.
Here is the example of my code. Data is based on this URL…

kmangyo
- 1,147
- 1
- 12
- 13
6
votes
1 answer
d3 Sankey - Is it possible to affect or decide the placement of nodes?
I'm working with the Sankey plugin for d3.js. Is there a way to affect the automatic placement of the nodes?
If you compare the below 2 images.
Automatically generated Sankey Diagram: https://files.secureserver.net/0s3DEU5s3OZtqL
After I have…

Peter NB
- 71
- 3
6
votes
3 answers
d3.js Sankey diagram: rectangles fill color
So I am playing around with the d3.js Sankey diagram.
In this example (pictured above) color is defined using
var color = d3.scale.category20();
For each node there is a rectangle, and that rectangle is filled by altering the style:…

lucastimmons
- 151
- 1
- 3
- 11
5
votes
0 answers
How to display values of streams of a sankey diagram in Plotly without hovering
Is it possible to display the values of a all streams of a sankey-diagram without hovering over it?

Bullfraud
- 391
- 1
- 3
- 6
5
votes
1 answer
Change link colors of Google Chart Sankey diagram
I have a list of lists with [from, to, value, color] entries. I want to create a Sankey diagram with it in google charts. Creating a basic Sankey diagram is not difficult, however, I would like to change the link colors based on the RGB values in…

sandertjuh
- 550
- 2
- 13
5
votes
3 answers
Sankey Diagram (Alluvial Diagram) in Vega-lite
Anyone having an idea on how to create Sankey diagrams like those in Vega-lite?
https://observablehq.com/@d3/sankey-diagram
Input would be data like
From | To | Amount

Christian
- 372
- 3
- 13
5
votes
1 answer
Sankey-diagram PowerBI custom visual with color nodes and ordering
The sankey diagram of PowerBI has many possibilities but as you can read on the github site there are some important limitations. The first is that it is not possible to color the nodes. In addition, it is also not possible to change the order of…

Kees de Jager
- 582
- 1
- 7
- 25
5
votes
0 answers
Plotly. Size of nodes scaled differently between different sankey diagrams
I am plotting sankey diagrams with plotly in Python as in: https://plot.ly/~alishobeiri/1591/plotly-sankey-diagrams/#/.
For a single sankey diagram the size of nodes scale such that they fill out the height of the entire diagram. This is an issue…

David Halley
- 417
- 3
- 6
- 18
5
votes
0 answers
R plotly Sankey diagram with annotated columns
I'm trying to create an annotated Sankey diagram. I'd like the final version to look along the lines of this manually annotated diagram:
The easy part of getting the Sankey diagram:
sankey_diagram <- plot_ly(
type = "sankey",
orientation =…

balkon16
- 1,338
- 4
- 20
- 40
5
votes
1 answer
Connecting more than two systems in a sankey diagram using matplotlib gives me misalignment
I am trying to make a slightly complex sankey diagram using matplotlib, It is supposed to be dynamical in the sense that I should be able to change the values of the flows and that all connections should stay connected. This means that I cannot…

Torkel
- 51
- 1
5
votes
2 answers
Is there any way to highlight specific node on click | Highcharts Sankey
I would like to know whether a specific node can be highlighted on Click similar to states in hover(linkOpacity) and to replace it with it's previous colour when some another node/series is clicked.
In short, when the chart is loaded, the top node…

Junaid P Khader
- 203
- 1
- 8
5
votes
1 answer
DataLabels formatter not working in Highcharts Sankey Diagram
Expected Behaviour:
Ability to format the dataLabel in the sankey diagram
Actual Behaviour:
dataLabel is not getting formatted.
dataLabels: {
enabled: true,
formatter: function(){
return "Abc";
}
}
Live demo with steps to…

Junaid P Khader
- 203
- 1
- 8
5
votes
0 answers
Sankey Particles Visualization
I really like the Particle visualization of Sankey diagram
https://bl.ocks.org/micahstubbs/6a366e759f029599678e293521d7e26c
However, i cant replicate the same in R shiny as i have no knowledge on embedding scripts . Below is code for creating a…

EricA
- 403
- 2
- 14
5
votes
1 answer
How to make a googleVis multiple Sankey from a data.frame?
Aim
I am aiming to make a multiple Sankey in R using the googleVis package. The output should look similar to this:
Data
I've created some dummy data in R:
set.seed(1)
source <- sample(c("North","South","East","West"),100,replace=T)
mid <-…
user2174781