Questions tagged [sankey-diagram]

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.

752 questions
1
vote
1 answer

modalDialog doesn`t appear if sankeyNetwork (networkD3) is used

I have a problem when I use modalDialog in shiny and sankeyNetwork (networkD3). If the sankeyNetwork is rendered in the app then modalDialog doesn`t appear - I can see only grey screen but without dialog window. Click Show Modal when sankeyNetwor is…
spokowodza
  • 23
  • 3
1
vote
0 answers

I'm getting an error on tooltip Sankey-diagram Highcharts

i'm trying to create a sankey-diagram using highcharts library. Tooltip works fine on sankey lines, appart from the nodes, when i hover to the node it throws an error: Failed to retrieve the 'series' property of a null or undefined reference The…
inna
  • 169
  • 1
  • 2
  • 10
1
vote
0 answers

d3.js adding style to a title

I have a fairly customized d3.js sankey diagram set up, and it's working correctly. However I would like to make my hover options stand out. Ideally I would like to make it so that when I hover over any given node it would display an html table that…
W11B2349
  • 31
  • 7
1
vote
0 answers

plotly Sankey diagram: Can I make 4 or more links between two nodes?

I created a Sankey diagram using the plotly package. Please look at below example. I tried to make five streams, 1_6_7, 2_6_7, and so on. But two of five links between 6 and 7 disappeared. As far as I see, plotly allows to make only three or less…
cuttlefish44
  • 6,586
  • 2
  • 17
  • 34
1
vote
1 answer

Why do I get "argument "output" is missing, with no default" when trying to make a sankey plot with R shiny and networkD3?

I am trying to make a shiny App in R via the networkD3 example. My code is attached on the bottom. I got the code from this page. When I try to run this, I get this error message: Error in shinyServer(function(input, output) { : argument…
nexonvantec
  • 572
  • 1
  • 5
  • 18
1
vote
2 answers

Sankey plot with bands/links that can change width in R?

Is it possible to make a sankey plot that looks like this in R? I've played around with the networkD3 package, which works great if the sum of input = sum of output for each node, but I need a solution which supports bands/links that change in size…
dcl
  • 929
  • 1
  • 10
  • 22
1
vote
1 answer

Sankey plot where edges between nodes correspond to an N3 column

I would like to draw a sankey plot based on the below generated data structure where the edges between nodes correspond to an N3 column and their presence and thickness depend on the Value column. For the below dummy data, the plot would look like…
jO.
  • 3,384
  • 7
  • 28
  • 38
1
vote
1 answer

Sankey diagram using d3.js - Add information to link title

I am trying to implement this sankey example: http://bl.ocks.org/d3noob/c9b90689c1438f57d649 It uses a CSV file for data input with the fields: source - target - value The link title is displayed as: I would like to add another field to the data…
StefanOverFlow
  • 389
  • 4
  • 17
1
vote
1 answer

D3.js Sankey diagram with particles

I've been experimenting with sankey diagrams using the d3 Javascript library. I've recently come across a very nice sankey diagram on bl.ocks. https://bl.ocks.org/micahstubbs/ae0946f9efe18fc4f67460e7387abc0b The first thing I tried before applying…
1
vote
1 answer

MS SQL query that will select all linked node pairs for D3 sankey diagram

I've got following [AllPathsTbl] and I'm trying to write a query that when I pass a node name it will select rows that are linked to that node (also indirectly i.e. through other links) SELECT * FROM [AllPathsTbl] Node1 Node2 TotalValue D1 Q1 …
Pawel
  • 891
  • 1
  • 9
  • 31
1
vote
1 answer

How to tune horizontal node position in d3 sankey.js?

I am trying to plot some flow diagrams using d3's sankey.js. I am stuck at arranging nodes x positions in the diagrams. t2_a should be in same column as t2_b as they represent quantity from same time period. However by default this is placed at…
Chakresh
  • 57
  • 6
1
vote
2 answers

NetworkD3 Sankey Plot in R: How to switch text labels from the right to the left of the inner nodes only

I created a Sankey Plot using the NetworkD3 R package. Below is an example of the output: Sankey Plot Example I used the following code for the Sankey: sankeyNetwork(Links = SankeyLinks, Nodes = SankeyNodes, Source = "source", Target =…
J Bock
  • 13
  • 1
  • 6
1
vote
1 answer

Sankey diagram for Discrete State Sequences in R using networkd3

I am trying to create an interactive Sankey diagram in R using the networkD3 package as described at http://christophergandrud.github.io/networkD3/#sankey. My data is in the format of Discrete State Sequences(DSS). 1 row represents 1 event sequence.…
Vipin
  • 25
  • 6
1
vote
0 answers

How to prepare data for Sankey plot in R

I want to create a Sankey plot from my data. I do this as follows: #Create the data proc<-sample(c("EMR","RFA","Biopsies"), 100, replace = TRUE) #Sample dates dat<-sample(seq(as.Date('2013/01/01'), as.Date('2017/05/01'), by="day"), 100) #Generate 20…
Sebastian Zeki
  • 6,690
  • 11
  • 60
  • 125
1
vote
1 answer

D3 Sankey diagram using typescript

I have the code from here https://gist.github.com/d3noob/013054e8d7807dff76247b81b0e29030 working in vanilla javascript, but I am struggling to get a Sankey diagram working in my Angular 2 project (built using Angular CLI) which uses Typescript. D3…