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
0 answers

R rChart plot would not display due to config.yml filepath slashes

From the rChart package, dependencies are read in from the config.yml file, like so: sankey: css: [css/sankey.css] jshead: [js/d3.v3.js,js/sankey.js] cdn: css: - "http://timelyportfolio.github.io/rCharts_d3_sankey/css/sankey.css" …
Florie
  • 251
  • 3
  • 9
1
vote
2 answers

PhantomJS not exactly rendering Sankey diagram HTML to PNG

I'm having trouble adjusting PhantomJS to create a PNG file that matches the original browser presentation. Here is the entire sample html file. It's a sankey diagram creating using rCharts and d3-sankey. (You'll need to save the file to your hard…
John Leonard
  • 291
  • 2
  • 9
1
vote
0 answers

Problems creating Sankey diagrams using d3.js (3)

This is in relation to my previous questions "Problems creating Sankey diagrams using d3.js (1 and 2) Here I'm trying to replicate the example provided by Malcolm Maclean in his book "D3 Tips and Tricks" his implementation of "sankey-formatted-json"…
JMac
  • 11
  • 1
  • 6
1
vote
2 answers

Sankey Diagram (D3) - How to use multiple units for link values and how to add notes to mouseover popup box?

http://bl.ocks.org/d3noob/5028304 Looking at this example, hovering over a link shows the source, the target, and the value. The value is appended with the variable 'units', which for this example is "Widgets". var units = "Widgets"; var…
Lokitez
  • 205
  • 1
  • 3
  • 11
1
vote
0 answers

Alluvial or Sankey diagram generated with Python, using d3py?

I'd like to create a Sankey or alluvial diagram using d3py, d3.js, and its sankey.js plugin, but I don't know how to reach this JavaScript library and the plugin from d3py. Can someone get me started here?
reckoner
  • 2,861
  • 3
  • 33
  • 43
0
votes
0 answers

How to add text to Holoviews Sankey diagram?

Giving he following setting: Python = 3.11 Holoviews = 1.17.0 Bokeh = 3.2.1 and df: source target count Band 1 Band 1 2742 Band 1 Band 1 5976 Band 1 Band 1 7731 Band 1 Band 2 31831 Band 2 Band 2 38582 Band 2 Band 2 48177 Band 2 Band…
Torakiki
  • 45
  • 6
0
votes
1 answer

R networkD3::sankeyNetwork, how to add y-axis labels without losing added elements from htmlwidgets::onRender

I'm trying to add y-axis labels to my sankey network. I managed to add x-axis labels using htmlwidgets::onRender. I tried adding some y-axis labels based on this answer. However, my x-axis labels from earlier disappears after adding the y labels.…
nightstand
  • 329
  • 2
  • 11
0
votes
1 answer

How to make a sankey graph using ggalluvial in R?

I am trying to make a Sankey graph using the ggalluvial package in R. I have the following data: ID Cluster3(values ranging from 1 to 3) Cluster 6 (values ranging from 1 to 6). x and y coordinates (as this is a spatial dataset) I merely want to plot…
Tammy
  • 3
  • 2
0
votes
2 answers

I want to make Sankey Graphs in R, but the networkd3 package doesn't work

I am trying to make Sankey graphs, however, the networkd3 package doesn't seem to work right. When I try to install it in R, the following error comes up: Error: package or namespace load failed for ‘networkD3’ in loadNamespace(j <- i[[1L]],…
Tammy
  • 3
  • 2
0
votes
0 answers

How to add percentage in Sankey chart?

I would like to create a sankey chart, based on a google sheets entry. In the google sheet, you will find a column with the source, another one with the destination and the third column shows the value. Thats a screenshot of the Spreadsheet: I…
0
votes
0 answers

How add label and percentage inside of the Sankey Images?

I am trying to make customize Sankey images in R, I used this data to practice. df = structure(list(Sources = c("Urban", "Tourism", "Tourism", "Urban", "Urban", "Urban", "Tourism", "Tourism", "Tourism", "Tourism", "Urban", "Urban", "Urban",…
Kazi
  • 67
  • 7
0
votes
0 answers

Amcharts sankey diagram: how to see ALL 'following' path on hovering a link

I'm very interested in doing a "Traceable Sankey Diagram" using AmCharts exactly like the one that can be experienced here: https://www.amcharts.com/demos/traceable-sankey-diagram/ When you move the mouse over a link (for instance C-F) you can see…
Maike
  • 148
  • 6
0
votes
0 answers

Move source and target names outside the pyplot sankey diagram

can i get the code for plotly sankey diagram to move individual names of both source and target nodes out of the image. eg. 'VU', 'CE' etc in the target nodes. the data is data = [{'source': 'ANACANTHOBATIDAE', 'target': 'LC', 'value': 9}, …
Sajna v.h
  • 1
  • 1
0
votes
0 answers

Simplified alluvial/sankey plot in R with same categories on both sides

I would like to build a simplified alluvial/sankey plot in R that shows the same categories on both sides and only visualizes their change in size. Probably best illustrated by this sketch. How can I achieve this? I tried the ggalluvial and the…
Felix D.
  • 1
  • 1
0
votes
0 answers

Non linear Sankey graph : Any tools accepted

I'm trying to make sankey graph like this : This one Or this one (Sorry, not enough reputation for the image) It's possible to use Tikz but not really adequate for curved lines. I imagined doing it by hand, but even drawing two lines side by side…
Capt_
  • 1
  • 2