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

Add text after last node in D3 Sankey diagram

I am trying to move the labels of the right most nodes on my Sankey Diagram to follow the node rather than come before the node. I am using the code shown here. I was able to get the text to follow the node by keying out the filter function line as…
Danny
  • 554
  • 1
  • 6
  • 17
1
vote
0 answers

Shiny Gvis Output is opening in browser and not within the app

I am trying to get my shinydashboard to plot a sankey chart within a box but when I run it it opens in another tab on my browser. Can I htmlOutput to have the sankey plot open in the box in the app? I tried changing it to DataTable and it works…
1
vote
2 answers

CSV file to Json in Javascript

i have a question, i have a 'CSV file' data and it looks like this source,xPos,target,xPos,value user1,0,user2,1,4 user2,1,user3,2,4 user1,0,user3,2,2 user4,2 userA1,1,userA2,2,4 and I need to reform it, because my fuction uses a data set variable…
Chis
  • 131
  • 10
1
vote
0 answers

Tableau and modified Sankey diagram

I have been trying to recreate a modified Sankey based on Adam's work with the American Whiskey Viz and Beatles Analysis Viz that are found…
vizyourdata
  • 1,338
  • 1
  • 17
  • 44
1
vote
1 answer

Displaying Percentages in a Sankey Diagram using D3 JS

I am new to D3 js and trying display percentages on the sankey diagram by nodes. I am able to display percentages in the sankey but it calculates the percentage by total value. Any help is appreciated. Thank you!! d3.sankey = function() { var…
user87742
  • 13
  • 5
1
vote
0 answers

Google Sankey chart - adjust height automatically

Is there a way to make Google Sankey Chart to adjust it's height automatically? I have a problem with height when I want to draw a lot of rows. Please check fiddle example, because there is a lot of rows, they cannot be all displayed, and the…
zachu
  • 671
  • 2
  • 7
  • 19
1
vote
3 answers

d3 Sankey assign fixed x,y position

I have a sankey diagram in which the user can move and position the nodes freely. I want to save the exact pixel-position selected by the user and use it in the next regeneration of the diagram. The only way I have managed to approach this until now…
Cos
  • 1,649
  • 1
  • 27
  • 50
1
vote
0 answers

Create list from data.frame

I'm trying to produce a sankey-plot using the package riverplot in R. In order to do that I need to create a riverplot object. Following the vignette here this seems quite straightforward. Unfortunately, it is not. I get the an error message and am…
Thomas
  • 1,392
  • 3
  • 22
  • 38
1
vote
1 answer

How can I access nodes properties of a Sankey chart

Using the google charts Sankey Diagram, I want to set my self the positions of the nodes: The normal behaviour of a Sankey diagram is that every nodes emerging from others nodes must be aligned on the same vertical line: My aim is to copy this…
Jean
  • 1,707
  • 3
  • 24
  • 43
1
vote
1 answer

Making a Sankey diagram in R for printing

I am trying to make a Sankey diagram using R for a printed report. I have currently used 2 methods to do this but neither is achieving quite what I wanted. The first uses the Riverplot function and produces this: My problems with this plot is that I…
B_Dabbler
  • 183
  • 8
1
vote
2 answers

How to create a Sankey in icCube?

I tried to create a Sankey diagram using icCube reporting but everything I try is not working... I did not find any sankey example in icCube demo... No more on the icCube documentation... Can someone provide a working example ?
Bertrand Miot
  • 929
  • 5
  • 12
1
vote
1 answer

x-Position of nodes in D3 Sankey technical note

I came across this solution for controlling the x-position of nodes in D3 Sankey diagrams: d3 sankey charts - manually position node along x axis I made the appropriate modifications to the code and to my data, but some of the nodes appear on the…
user3433489
  • 911
  • 2
  • 10
  • 24
1
vote
1 answer

modified sankey Plot with several edges between nodes

I would like to make a modified sankey plot in R, where it is possible to have several edges between nodes, to identify different paths. It is a bit hard to explain so I made sample picture in ppt :) I know it is ugly :) but my point is that I…
1
vote
1 answer

Prevent loop in D3js Sankey chart

I'm trying to create a sankey chart using the d3 sankey plugin with dynamic shipping data. It works great most of the time except when I get a data set like this:…
AOndracek
  • 13
  • 5
1
vote
1 answer

Is there a maximum node limit in a Sankey diagram?

I am making a Sankey Diagram to show mass flows (chemical engineering stuff). An older .json file with fewer nodes, works perfectly with the same code (below), but if I load in a .json file with more nodes it doesn't show up, giving me a "Uncaught…
indiebio
  • 11
  • 3