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

Reactive height for sankeyNetworkOutput from networkD3

I have a Shiny dashboard that is displaying a sankeyNetwork from the networkD3 package. I'm creating the sankeyNetwork inside of a renderSankeyNetwork function on the server and then calling it on the ui with sankeyNetworkOutput. I'd like to make…
cparmstrong
  • 799
  • 6
  • 23
1
vote
0 answers

d3-sankey from hierarchical data

I am practicing to generate Sankey diagram from hierarchical data instead of nodes and links objects. Here is example data (Same Object modeling for generating forceDirectedGraph from hierarchical data) const _data = { name: "Company", children:…
1
vote
1 answer

Create shiny app with sankey diagram that reacts to selectinput

I'm trying to create a dashboard with a Sankey diagram and a selectInput that lets the end user choose filter the source column. I'm having trouble trying to figure out how to use the reactive expressions to filter the data. It's sort of complex…
cparmstrong
  • 799
  • 6
  • 23
1
vote
1 answer

How do I colour the individual categories in a holoviews Sankey diagram?

I'm modifying the example from the docs: http://holoviews.org/reference/elements/bokeh/Sankey.html I want to be able to access each of the categories and colour them explicitly. Eg/ make 'A' yellow, 'B' blue etc. I'm happy to provide hex codes. I…
Edward
  • 468
  • 4
  • 18
1
vote
2 answers

How to use Community Visualization - Sankey Diagram?

I've quite a few different combinations for the dimensions (in the property bar) but can't seem to get the Sankey diagram to work after I copy it, shown here: https://developers.google.com/datastudio/visualization/ What is the format of the data it…
1
vote
1 answer

Link value label thousands separator

I'm using sankeyNetwork from networkd3. When I plot my data, if I hover the mouse on the sankey links the link label appears, and the thousands separator in this label is a comma. I would like it to be a point. Here is an…
Xevi
  • 379
  • 1
  • 2
  • 11
1
vote
1 answer

Different node tooltips in highcharts sankey diagram

In a Highcharts sankey diagram, I would like to label the nodes with a tooltip. The left (sender nodes) should be labeled differently than the right ones (receiver nodes). Example: Left node: "CVP (Origin Party Votes): 6000" Right node: "CVP…
Martin F.
  • 57
  • 6
1
vote
1 answer

How to display Dataset labels inside a HoverTool in a Sankey diagram using Holoviews and Bokeh

I am using Holoviews to display a Sankey Diagram and would like to customize the information displayed when positioning a cursor over the diagram. However, I don't know how to display the correct labels. Taking the 2nd example from the docs, I can…
Petr Wolf
  • 127
  • 7
1
vote
1 answer

d3-sankey-diagram align links by type

I'm trying to use the excellent d3-sankey-diagram library by Rick Lupton to draw a sankey diagram. On the demo page "alignLinkTypes" is used to align links with the same types over nodes, but since November 2017 this keyword does not work any more;…
lime
  • 15
  • 4
1
vote
0 answers

How to create dataset for a sankey diagram?

I am doing a class in Data Visualisation and thought that a sankey diagram is quite an interesting visualisation of data. I am unsure however, how the dataset should look, respectively how I create a dataset that I can use. So the question is:…
Jürgen Erhardt
  • 163
  • 1
  • 1
  • 6
1
vote
0 answers

How do I line break in R's networkD3 package? when using a diagonal network?

The newline \n 'line break' doesn't seem to work with the networkD3 package. Or maybe I'm not applying \n properly. How do I line break on line #2 shown below when using the diagonalNetwork() function? library(networkD3) nd3 <- list(name =…
Display name
  • 4,153
  • 5
  • 27
  • 75
1
vote
1 answer

Customise Sankey Highcharts marker and link width

I am implementing a Sankey charts using Highcharts where I need to display each nodes in specific symbol. I want to implement marker symbol feature for my Sankey graph. I tried using marker.symbol which is not working. marker: { symbol:…
Guru
  • 13
  • 5
1
vote
1 answer

R - How to make a Alluvial diagram

I want to make an Alluvial diagram using library(alluvial) My dataframe looks like this: > id Diagnose 1 Diagnose 2 Diagnose 3 1 Cancer cancer cancer 2 Headache Breastcancer …
user10806160
1
vote
1 answer

Highlight all connected paths from start to end of a sankey diagram using networkD3

I would like to produce a Sankey-diagram using the networkD3 package in R that has the functionality as described in this question, and the "highlight_node_links" function in the answer: d3 Sankey - Highlight all connected paths from start to…
gombi
  • 23
  • 4
1
vote
1 answer

R: networkD3 sankey plot - colours not displaying

I am using the networkd3 package in r to produce sankey plots. I have used the following code to produce a working plot: sankeyNetwork(Links = df_links, Nodes = df_nodes, Source = "source", Target = "target", Value = "value", NodeID =…
Ant
  • 313
  • 5
  • 19