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

Is there a way to create a color gradient for the flows in a Sankey diagram using networkD3 in R?

I am trying to make a Sankey diagram in R using the networkD3 package with user-defined colors. I would like to make the flows colored as gradients between the nodes, as in this example: Here is a reproducible…
0
votes
1 answer

Change labels in highcharter sankey

I want to improve the appearance of my highcharter sankey diagram. The labels of the nodes should be left and right to the plot and not "on" the nodes. So in the plot shown below the country names should appear left and right to the…
Marie Veit
  • 27
  • 5
0
votes
0 answers

How can we put the layer in the exact column of figure as we preferred in the Sankey Diagram using network3D?

I am trying to use networkD3 to create a Sankey diagram and I have difficulties creating the preferred layers in the diagram. I see that the famous example below has a wonder distinct layer, but cannot figure out how this can be produced. For…
Jie SU
  • 1
  • 1
0
votes
1 answer

How to make a Sankey Diagram in R using this structure of data

I have a particular structured data set on student performance across classes and into which achievement cohort they fell into. I want to create a sankey diagram that visualizes how students achievement cohorts changed across several classes. My…
Alokin
  • 461
  • 1
  • 4
  • 22
0
votes
0 answers

Connect a Sankeyplot to a Barplot in R

I am looking for an elegant visualization of this mock dataset. My dataset a.dat is the in the form of a…
Ginko-Mitten
  • 304
  • 1
  • 11
0
votes
1 answer

Plotly Sankey Diagram: How to display the value for each links and node on the link/node without hover?

In the Plotly Sankey diagram, you are able to see the 'value' of a link/node by hovering over it. I want the image to display the values without hovering though. I've looked through the documentation and see virtually no way of doing this beside…
MrChadMWood
  • 113
  • 11
0
votes
0 answers

Filtering analytic details table in Power BI Sankey chart causing incorrect summary amounts, how can I recalculate accurately?

I have two tables imported from the same source, where the principal has a summary of the amounts (used in the Sankey chart) and a secondary (related) table that has the analytic details, I'm trying to filter (using visualization) from analytic…
0
votes
0 answers

How can I customize the order of nodes in a sankey diagram using highcharter library in R?

I am trying to plot a sankey diagram with the highcharter library in R It is actually quite straightforward to get the plot, but I cannot manage to customize the order of the nodes. Could someone help…
0
votes
0 answers

Sankey in R: set constant height left to right

I want to create a sankey that describes whether people are retained in care, lost to follow up, died or censored at each year after they started treatment. I have created the diagram but the buckets at each time point get larger/ taller from left…
Rookie
  • 1
  • 1
0
votes
1 answer

Sankey plot with plotly in R: how do I get the plot to skip over the NAs and not try to plot dead ends of some nodes?

I created a sankey plot with Plotly in R. I am happy with the color match up between the links and nodes (purposely only have the first column of nodes to be color matched up, and rest of the columns to be in black). However, some nodes are supposed…
catcool7
  • 71
  • 1
  • 7
0
votes
0 answers

How can I prevent a Highcharts Sankey chart form converting a small link into a circle (without setting a higher minLinkWidth value)?

I think this addition of circles in place of small links is a new behavior because I didn't encounter it a few weeks ago. However, I definitely do not want small circles in my Sankey charts. I would expect that the "width threshold" for the decision…
phil1008
  • 39
  • 4
0
votes
0 answers

How to plot circular sanky plot using R

I tried to plot the same plot as shown in the picture using R. It displayed the results of thematic analysis (qualitative analysis), which tell the readers of open-end answers' themes. I googled it using the key words "circular sankey diagram" but…
0
votes
0 answers

Showing hovertext permanently in sankey chart plotly

I am creating a Sankey Chart. Sample code import plotly.graph_objects as go fig = go.Figure(data=[go.Sankey( node = dict( pad = 15, thickness = 20, line = dict(color = "black", width = 0.5), label = ["A1", "A2", "B1",…
Abhishek Pal
  • 141
  • 4
0
votes
0 answers

Renaming the Sankey Chart Label using amchart4

Is there any way to rename the label of different nodes in the Sankey Diagram using AmChart4.
eboi
  • 131
  • 6
0
votes
0 answers

Sankey diagram out of figure

So I'm creating, as the title says, a sankey with the help of plotly in python. The code can be seen here: node = dict(label=ecu, pad=20) link = dict(source=list(index_send), target=list(index_rec), arrowlen=15, value=combination_bps,…