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.
Questions tagged [sankey-diagram]
752 questions
1
vote
1 answer
Half node in sankey Highchart
Is there any way to draw a half node in Sankey using Highcharts?. I
have searched a lot but didn't get any solution. From d3 it can be done but the same thing I want to achieve with Highcharts. For reference, I have attached the image. If you…

john s
- 21
- 3
1
vote
1 answer
change the color of links in networkD3 sankeyNetwork using R
I have created a sankeyNetwork using networkd3 in r. How can I change the color of flow lines or links? I would like to have the flow lines be the same color as the nodes.
Here is my code:
library(networkD3)
library(xlsx)
links <-…

Gaurav Goyal
- 11
- 2
1
vote
2 answers
Displaying crossover only in d3.js Slankey (Dynamic, Interactive)
I am aiming to create a d3.js visualisation dashboard that shows the flow of mutual connections based on a selection for 'a', that provides a statistic for 'b', shaped like a Sankey/Parallel Set. For instance, if 'a' is the user selection, where…

AliShahVis
- 121
- 1
- 9
1
vote
0 answers
How do I pass additional data to the tooltip in a sankey diagram (vue-d2b.js)?
I am using vue-d2b to display a sankey chart and I'm trying to display some extra info per node and per link through the tooltip. I am unable to figure out how to do this. Here is what I've tried:
chartConfig(chart) {
…

Aamir khan
- 11
- 1
1
vote
0 answers
how to properly render Sankeynetwork in flexdashboard
I have made a really nice but large sankey-diagram using the networkd3 package in r. There are 173 nodes with 4 levels of (898) links. it renders well in rstudio viewer. However, when I render it in flexdashboard I only get a compressed diagram…

AyDee
- 43
- 5
1
vote
1 answer
How to assign levels to nodes in multi-level sankey diagram?
I am trying to build interactive multi-level sankey diagram using R. I can't find the solution how to assign the levels to nodes. For example, a1 node should be on the second level in chart but not in the fifth. It seems that the package assigns to…

iomedee
- 381
- 1
- 14
1
vote
1 answer
add labels to alluvia in ggalluvial
Is there any possibility to add labels to the alluvia in ggalluvial?
Example plot:
library(ggalluvial)
data(vaccinations)
levels(vaccinations$response) <- rev(levels(vaccinations$response))
ggplot(vaccinations,
aes(x = survey, stratum =…

captcoma
- 1,768
- 13
- 29
1
vote
0 answers
Amchart Sankey 4 height handling
I have an issue that when I tried to increase the height of amchart container, the nodes get bigger and somehow the content is out of the container and get hidden. I tried maxHeight for fox node and container but seems doesn't help much.
Here is…

Tam Nguyen
- 115
- 1
- 9
1
vote
1 answer
Matplotlib Sankey labels and values
I'm working on a Sankey diagram and I'm experiencing some issues with the labeling process. Is there a way to put the labels and the values of each flow on the same line? I would like them to look like this: "Label: value".
Here are the code and the…

Niccolo
- 13
- 4
1
vote
1 answer
Plotly Blank Sankey Diagram with no errors
I'm attempting to plot a Sankey diagram using plotly and I get a blank output with no python or inspection errors.
The plot class I created is the following:
from typing import *
import logging
import pandas as pd
import plotly
import seaborn as…

drkostas
- 517
- 1
- 7
- 29
1
vote
1 answer
Transforming Kusto array into specific tabular format
I have my data in the format
I need to transform the data into
[source, destination and count] format
so that I can create a sankey chart out of it. Can I do any transform like this in Kusto itself or is this possible only via a programming…

Rishav Sharan
- 2,763
- 8
- 39
- 55
1
vote
2 answers
Sankey with Matplotlib
In this Senkey are two Inputs: K and S, three Outputs: H,F and Sp and the Rest: x
The Inputs shall come from the left Side, the Outputs go to the right Side.
The Rest shall go to the Top.
from matplotlib.sankey import Sankey
import matplotlib.pyplot…

kolja
- 505
- 7
- 24
1
vote
1 answer
How to not display values in the nodes or the links in SankeyDiagram using networkD3 in R
In the sankeydiagram example below, is there anyway to hide the "Values" being shown in the diagram while hovering - both on the Nodes as well as the Links. Im basically using the sankey chart to show a stylised flow diagram, and I would like the…

ashleych
- 1,042
- 8
- 25
1
vote
0 answers
Is it possible to rearrange the links so that corresponding links are connected together?
I'd like to create a Sankey plot with plotly. My data is structured in that way, that there is flow from the very left to the very right of plot. Each flow has the same value.
The problem is: Currently it is not possible for me to rearrange all the…

datavisualization
- 11
- 1
1
vote
0 answers
D3v5 Sankey Diagram add Drag&Drop
I have a Sankey Diagram where I show connections between source and target sites.
Now I want to add a drag&drop functionallity to this chart, but I have difficulties as I did use transform/translate until now. The current Sankey Version works with…

gothmogg
- 72
- 11