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
1
vote
0 answers
networkD3 sankey diagram node with no target?
I'm now drawing sankey diagram with networkD3 in R.
I found all targets must go to a source. Empty/NULL target in link will raise an error. But what I trying to implement needs those goes-to-nowhere value stay where they are and link to nothing…

Jensen Fan
- 33
- 8
1
vote
0 answers
Add gradient to links in R networkD3::sankeyNetwork?
Within the R environment, is there any way to add gradients to links with user-specified colors within the networkD3::sankeyNetwork functions?
This repo expands on the functions of networkD3::sankeyNetwork, but it only seems to allow for the…

Marion
- 101
- 1
- 10
1
vote
0 answers
D3 Sankey Diagrams: How to handle dynamic data? I.E. Nodes/Links with no value (or 0 value)
This is a question for those working with D3.js Sankey diagrams.
What is the recommended approach for organizing/creating the JSON data for these diagrams?
Every example I've come across involves the example creator having the JSON/CSV having at…

JustAnotherNewbie
- 11
- 3
1
vote
1 answer
Amchart 4 Sankey Diagram Node out of range
https://codepen.io/aad61404/pen/YRyJxN
https://codepen.io/aad61404/pen/aQvRyz?editors=0010
I am using amcharts 4 Sankey diagram and I want to fix the
node out of range .
I try
chart.height = 500;
chart.contentheight = 500;
chart.contentHeight =…

ZHENG XIANG REN
- 31
- 5
1
vote
2 answers
sankey flow diagram: links going one axis to another has multiple links
I am using generic Diabetes data,
datGluBMIAge <- dat[, .(freq = sum(freq)), by=list(Glucose_cat, BMI_cat, Age_cat, Outcome_cat)]
datGluBMIAge<- datGluBMIAge[!(is.na(datGluBMIAge$Age_cat))]
datGluBMIAge<-…

Trupti
- 33
- 6
1
vote
1 answer
structuring binary data for sankey plot
I am having trouble figuring out how to make a sankey plot for data where there are multiple opportunities of success (1) or failure (0). You can generate my sample with the following code:
#…

slap-a-da-bias
- 376
- 1
- 6
- 25
1
vote
2 answers
R from grouped dataframe to Sankey diagram
I've been spending most of yesterdays time on the following problem and haven't found a solution yet to the following problem:
I have a dataframe with categorical data: say category1: has values A and B; Antother column category2 has values C, D, F,…

DCB
- 107
- 12
1
vote
0 answers
Composite aggregation equivalent in Elasticsearch 5.x
I am trying to display netflow in sankey diagram with Kibana. In Kibana 6.X and Elasticsearch 6.4 I can use the method described in Sankey Vega Tutorial
Now I want to achieve the same result with Kibana 5.6 and Elasticsearch 5.X. so I have installed…

J91321
- 697
- 1
- 7
- 19
1
vote
1 answer
How to align the labels of sankey diagram?
In this example, when some of the values are the same (e.g. 0), the labels are getting overlapped. Can someone help me align these labels vertically? I want them to be moved to the top of the node/bar.
Highcharts.chart('container', {
series:…

Murali Krishna
- 96
- 1
- 12
1
vote
0 answers
Combining Sankey flow graphs with bar charts in R / networkd3 package
I'm wondering to what extent it is possible to tweak Sankey flow graphs in the networkd3 package in R.
I have the following sankeyNetwork graph:
library(networkD3)
states <- state.name[1:10]
ranks <- sample.int(10)
nodes <- data.frame(name =…

Ben
- 197
- 1
- 9
1
vote
1 answer
Customize sankey diagram in R
Using sankeyNetwork() in package networkd3, I want to customize the resulting diagram a little bit. The reproducible code is as following:
library(networkD3)
links <- data.frame(source = c(0, 0, 0, 0, 0, 2, 2, 3, 3), target = c(1, 2, 3, 4, 5, 6, 7,…

user3045597
- 49
- 6
1
vote
1 answer
Highchart sankey- Show multiple entries having same name independently
I have a requirement that in case of an example like
I want the two r1s to appear independently on their respective axis
I.e
I want something like
l1 - r1
l3 - r1
l2 - r2
r1 - r3
i.e the 2 r1s should exist independently on the correct sides…

Vishal Bhalla
- 13
- 3
1
vote
1 answer
sankey chart with plotly.js from an object conversion needed
so I have an object that I need to convert into something viewable in a sankey diagram. the object looks like this:
"DecisionTreeRegressionModel": [
{
" If (feature 28 <= 16.0)": [
{
" If (feature 0 in {0.0})": [
{
…

Bill Newton
- 45
- 1
- 12
1
vote
1 answer
Modify length of Highcharts sankey-diagram connection line
I have got a question of Highcharts sankey-diagram.
Is there anyone can help me with changing the length of connection line?
It's too wide between data columns. I want to narrow the size to half.
here is the sample code from hightchart…

Qing Xu
- 175
- 1
- 11
1
vote
1 answer
d3 sankey chart not rendering
I am currently using the d3-sankey plugin for constructing a sankey diagram of a hierarchical dataset. However, when using datasets with modest size, my page freezes and then is forced to be killed within Chrome. I cannot inspect/open debugger…

Varun Vu
- 305
- 2
- 6
- 14