Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Filter by
Sorted by
Tagged with
2 votes
1 answer
74 views

Sankey Diagram: Categories are not in order

I want to create a sankey diagram using {highcharter} which shows a pre timepoint and a post timepoint. I have been working with this code. My problem is, that R sometimes mixes up the order of the ...
NinjaNuri's user avatar
0 votes
1 answer
78 views

How to fix ggsankeyfier misaligned nodes and flows when facetting

I am trying to generate a sankey diagram using the ggsankeyfier package. The problem I have is that the nodes and flows are misalgined when using multiple facets as you can see in the picture. Does ...
iouraich's user avatar
  • 3,056
1 vote
0 answers
68 views

Keep identical nodes together in Sankey diagram

I have a test dataframe: structure(list(session_id = c("1af95808ab79b9f0", "5d7b8edc5d30e029" ), `1` = c("ai-studio/dashboard", "ai-studio/dashboard"), `1.01` = ...
user2845095's user avatar
0 votes
0 answers
44 views

My vega code is compiling fine but not creating a visual in PowerBI. How do I resolve this?

I'm very new to Vega, mainly because I need a flow map in PowerBI under several constraints that make other methods unfeasible, and thus I've been attempting to create a custom visual with Vega. As it ...
Ian Normoyle's user avatar
3 votes
1 answer
103 views

How to allow ggalluvial plot to flow "over" a missed visit, and connect to a different stratum

I have an alluvial plot where I am showing a change in "status" over subsequent visits. Participants can move in and out of this status. Some of my participants are missing visits, so I'd ...
Tessa Concepcion's user avatar
1 vote
0 answers
42 views

How to show both count and total price with Date Slicer?

I’m working on a Power BI report and using a Sankey diagram with ChartExpo Sankey, Visio Chart Sankey, and Microsoft Sankey (from AppSource). I want the Sankey to display both the count of items and ...
Neil's user avatar
  • 11
3 votes
1 answer
127 views

How do I align the nodes in a Sankey Diagram in Python?

Need some help aligning my Sankey diagram properly. I've been working on a Sankey diagram project but can't seem to get the nodes aligned properly, they seem to be a bit off. I've tried to manually ...
GSA's user avatar
  • 845
0 votes
0 answers
73 views

adding labels on the links of sankey charts using plotly.js

I tried adding labels on the links of my sankey that would show the value of the link. I just tried adding "label" property to the link also in the trace of the sankey chart, but this did ...
bzara's user avatar
  • 23
0 votes
1 answer
108 views

Sankey/alluvial plot, disturbance in geom_alluvium flow

I have this frequency table regarding a clinical data. Columns named ..._risp are treatment response and the ones ending with ..._x are pathological events and can be recurrences or progression of the ...
user238243's user avatar
2 votes
2 answers
142 views

Sankey + Chord plot using R

Navigating through the internet, I discovered this awesome figure (Figure), which I would like to replicate for my project. In this project, I would like to have on the left "Main.path", in ...
Isma Soto Almena's user avatar
1 vote
1 answer
74 views

How to remove glow on node labels in Plotly Sankey diagram in Streamlit?

I'm trying to get rid of the "glow" or shadow effect around the node labels of this Plotly Sankey diagram. Is this possible? import pandas as pd import plotly.graph_objects as go import ...
Austin Mangelson's user avatar
0 votes
0 answers
109 views

Recharst Sankey diagram items alignment

We use recharts to build our diagrams. Currently we have diagram which looks like this But we need green element (changes approved to be aligned) with pink element (changes not app..). To look like ...
Vight's user avatar
  • 31
3 votes
1 answer
248 views

Customize sankey diagram design in networkd3

I found this diagram that I like from a research paper: https://www.researchgate.net/figure/Sankey-diagram-visualization-of-the-flow-of-data-from-coding-through-to-interpretation_fig1_338907991 I ...
stats_noob's user avatar
  • 6,845
0 votes
1 answer
146 views

How to make numbers reactive in Sankey Plot from networkD3

I would like to be able to click each number on the plot and then display a pop-up table with the patients/subjects information that belong to that set of numbers. That is, I would like to insert ...
YBS's user avatar
  • 21.5k
8 votes
0 answers
228 views

Diagram of road intersection flows (Sankey or other)

I'm trying to make a road intersection flow diagram in Python. The problem is, that none of the Sankey-specific modules that I managed to find support setting coordinates of the nodes and rotation of ...
leonefamily's user avatar
1 vote
0 answers
39 views

Understanding x and y coordinates in Plotly's Sankey Chart

I was trying to create a custom Sankey chart based on my defined x and y coordinates. However it isn't turning out as I am expecting. I was expecting that the nodes would stick to the defined x values ...
x0nar's user avatar
  • 135
1 vote
1 answer
109 views

Subplot Sankey Diagrams in plotly R

I would like to show two Sankey Plotly R diagrams below or side by side using the subplot function. Unfortunately, this doesn't work for a Sankey Diagram. Here is some reproducible simple code: ...
Quinten's user avatar
  • 42.8k
1 vote
1 answer
89 views

Income to outcome flow chart in Sankey plotly R

I would like to create a sankey diagram in Plotly R. In this graph I would like to show the income flow to outcome flow with a budget bar in the middle like show similar to the answer here. ...
Quinten's user avatar
  • 42.8k
0 votes
1 answer
111 views

Plotting Sankey diagram with muiltiple stages but same node labels in R

I would like to plot a sankey diagram to show how observations migrate from one risk level to the other over multiple stages (in this case years). Thus, the risk level labels are the same in each year....
ccc's user avatar
  • 37
0 votes
0 answers
53 views

Highlight Sankey Chart All Forward Links

I want the Sankey chart to highlight all the forward and backward links connected to the nodes on which I'm hovering. Examples: When I hover on the node Natural Gas, it should highlight that node ...
Papu Kumar's user avatar
0 votes
0 answers
132 views

Highcharts not properly load with the ReactJs

I am trying to use "react": "18.3.1" with highcharts ├─┬ [email protected] │ └── [email protected] deduped └── [email protected] Basic high charts are working but ...
wthamira's user avatar
  • 2,288
0 votes
1 answer
111 views

alluvial/sankey diagram with values from different timepoints in R

I have a similar dataframe structure(list(timepoint = structure(c(1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, ...
Alfredo Marchetti's user avatar
1 vote
1 answer
82 views

Sankey Diagram Blank in R

I am attempting to produce a Sankey plot in R following the example from https://www.youtube.com/watch?v=S6me1r6RI4I but I am struggling with troubleshooting my input data. I am not getting any error ...
Rosalin August's user avatar
1 vote
1 answer
50 views

sankey plot multilevel python

I need to generate this plot based on this dataset Dataset link I'm not really sure on how to proceed. I have proved an approach like this, but it is mostly wrong. source = sank['FROM'] target = sank[...
Mik's user avatar
  • 21
0 votes
0 answers
199 views

Echarts sankey diagram rendering

I'm trying to create a dynamic Sankey diagram with echarts. I have a case where I have a lot of data and my diagram is not really readable as you can see in the image (I have hidden the node names for ...
Valentin Cerfaux's user avatar
0 votes
2 answers
60 views

How to create a sankey highchart graph with a grouping node

I have some flights data which looks like this: [{"from":"NY", "to":"Oslo", "company": "Norwegian", "flights":3}, {"from"...
siggemannen's user avatar
  • 10.1k
0 votes
1 answer
63 views

Add percentages of patients in the second node of patients coming from first node in Sankey diagram [closed]

My question is based on this post How to colour skankey node with all colours of first node that it is related to in ggplot?. You might find a reproducable code in this initial post. And the question ...
Kate's user avatar
  • 149
1 vote
1 answer
84 views

Ggplot2 + geom_sankey_bump: Sort legend

i made this plot with geom_sankey_bumb and would like to sort the legend depending on the value of Name for the last data point/Year available for a better understanding of the data. Right now it's ...
Felix's user avatar
  • 31
0 votes
0 answers
39 views

Aluvial Graph Color, Label, and Ordering Issues

I'm trying to produce a Sankey plot, but every time I code it, either the left or right side ends up without color. Also, I'm having trouble getting correct the strongly agree, agree, neither, ...
Anna O'Sullivan's user avatar
0 votes
1 answer
51 views

How to make Sankey Images in R?

that is the demo data data = structure(list(Species = c("Cinachyrella", "Cinachyrella", "Cinachyrella", "Cinachyrella", "Cinachyrella", "...
Kazi's user avatar
  • 77
3 votes
1 answer
78 views

Remove unused node in python plotly

What im trying here is to create a relationship between Tasks. Some of them are connected directly to each other while others are passing through this big box i circled instead of connecting directly(...
chad's user avatar
  • 61
0 votes
1 answer
281 views

geom_sankey in R: Ordering Columns

I have created a Sankey image using ggplot + geom_sankey packages. The visual comes out as expected, but the columns are not in the order that I would like to see. I would like to arrange the middle ...
Purrsia's user avatar
  • 930
0 votes
1 answer
52 views

How do I set some custom colors to link when I use sankeyNetwork?

I used the sankeyNetwork function from the networkD3 R package to draw a sankey plot, aiming to show the changes in the number of cell types at different levels, but my custom colors don't match the ...
Fugwaaaa's user avatar
1 vote
2 answers
73 views

Coloring Sankeyplot links based on source nodes - issue with (sankeyNetwork::colourScale)

I'm trying to assign colors to links within a Sankey diagram command in Rstudio. Specifically, I would like the links to be colored by their source node group (SOF_Data$Species_Binomial). The links ...
Dasha's user avatar
  • 11
1 vote
0 answers
118 views

The sankey diagram made with d3 fails and has overlapping nodes

I have a problem making a sankey chart with d3. It has to be in an HTML file without using frameworks so that it can be sent without further ado. The problem is that nodes 4 and 5 are overlapping and ...
Alfonso Sanchez's user avatar
0 votes
1 answer
58 views

R Sankey Diagram

I want to create a Sankey diagram looking at different stages. I used the code: # Load necessary libraries library(networkD3) library(dplyr) # Group by clinical and pathologic stages, count the number ...
kathi's user avatar
  • 1
0 votes
1 answer
92 views

How to create a Sankey diagram in R where node colors are consistent for providers across different phases of a healthcare pathway?

I am working on a project where I need to visualize the flow of healthcare providers across different phases of a care pathway using a Sankey diagram in R. Each phase represents a step in the care ...
E. van Dongen's user avatar
0 votes
1 answer
297 views

How to adjust a node width in a sankey plot in R?

I am running into a problem when creating a sankey plot because of the structure of my data. Below is a sample dataframe. I am interested in the transformations of each feature across different stages ...
olu's user avatar
  • 3
1 vote
1 answer
88 views

I am having difficulty with the adding the additional Step 6 to the Ken Flerlage Sankey funnel template

I have used all the tips and tricks I could find on the Tableau community. Thank you Ken Flerlage for providing such great instructions, however I'm having a bit of a challenge still. As you can see ...
A Dolegowski's user avatar
0 votes
0 answers
36 views

I am having difficulty with the Curve 5-6 Polygon calc used in the Ken Flerlage Sankey funnel template

I have leveraged the Sankey funnel template from Ken Flerlage however I needed to add an additional step (Step 6) for my use case. Everything went smoothly until we got to the Curve 5-6 visualization. ...
A Dolegowski's user avatar
1 vote
1 answer
83 views

Sankey diagram with NetworkD3 [duplicate]

I am working on a sankey diagram in R following some tutorials using networkD3 package. I do not understand what is not working since when I run my codes, they work but in the Viewer it doesn't appear ...
Andrea Stringhetti's user avatar
1 vote
0 answers
81 views

Highcharts Sankey Chart: Only Data Labels Displayed, No Nodes or Links Visible

I'm working on a Sankey chart using Highcharts, but I'm encountering an issue where only the data labels are being displayed, while the nodes and links (edges) are not visible at all. Here is the ...
niggels's user avatar
  • 141
1 vote
1 answer
334 views

Integrating PowerBI Measures into Deneb Vega Visualisation (David Deneb Sankey)

I've been trying to modify the Sankey Chart made by @davidebacci to utilise in PowerBI / Deneb. The template he has shared is beautiful. However, all of the values have been manually placed into the ...
jimbob86's user avatar
0 votes
1 answer
320 views

Echarts.js Sankey Diagram Levels not working

In Echarts Sankey, they have an example with levels. However, when I try to run it (only change is vertically, though this doesn't seem to influence), it does not align the nodes by level. <script&...
Berik's user avatar
  • 83
-1 votes
1 answer
232 views

Why data is not in a recognized alluvial form

I have a dataset of students with their grades and I want to evaluate their evolution over the years. I've already cleaned up the data, and I've associated each student with his or her quintile within ...
Augustin Gaudemer's user avatar
0 votes
2 answers
66 views

R sankey networkD3 - set colour of target nodes

I want to create a sankey diagram setting different custom colours for source AND target nodes. The source nodes (and the links) get coloured as intended. However, the targets do not take the desired ...
Stefano Ceolotto's user avatar
1 vote
0 answers
21 views

How do I sort two axis in geom_alluvium [duplicate]

When I sorted the rectangles and lines on the two axes of the relative alluvial plot, I found that using factor can only adjust one axis, while the other cannot. What should I do? The data is as ...
Evans Liu's user avatar
1 vote
0 answers
553 views

How to make a Sankey diagram with ggsankeyfier with a factor on the y-axis?

I'm using ggsankeyfier functions to make a Sankey diagram, which may not be the best solution for this but it is the best I have so far. I've managed to create this plot: from this example data: t = ...
Théodore Targerian's user avatar
1 vote
0 answers
64 views

Sanjey diagram with variable width

I would like to render a graphic like this: I thought that Sankey diagram is what is for create diagram like this and I use https://www.npmjs.com/package/chartjs-chart-sankey However I cannot ...
dada17xs's user avatar
  • 190
1 vote
2 answers
225 views

Cannot re-order axes in ggalluvial

I have read through all of the ggalluvial posts that I can find about ordering the axes in an alluvial diagram. Each of my axes is a factor variable and I have set the levels to be in the order I wish ...
jos0909's user avatar
  • 77

1
2 3 4 5
17