Sankey diagram with loops doesn't work
See original GitHub issueA clear and concise description of what the bug is.
How to reproduce the bug
- Add sankey diagram with loops using instructions https://www.npmjs.com/package/@superset-ui/legacy-plugin-chart-sankey-loop
- Write test query:
SELECT "a" AS e1,
"b" as e2,
7 as counts
UNION ALL
SELECT "b" AS e1,
"c" as e2,
5 as counts
UNION ALL
SELECT "c" AS e1,
"a" as e2,
2 as counts
UNION ALL
SELECT "c" AS e1,
"b" as e2,
1 as counts
- Create chart using Sankey Diagram with Loops
- See error
Expected results
Build sankey diagram with loop like in examples
Actual results
Received error (screenshot added above)
Environment
(please complete the following information):
- browser type and version:
- superset version:
1.3.2
- python version:
python3.8
- node.js version:
node 14
- any feature flags active: {“ALERT_REPORTS”: True}
Checklist
Make sure to follow these steps before submitting your issue - thank you!
- I have checked the superset logs for python stacktraces and included it here as text if there are any.
- I have reproduced the issue with at least the latest released version of superset.
- I have checked the issue tracker for the same issue and I haven’t found one similar.
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (1 by maintainers)
Top Results From Across the Web
Plotly Sankey chart cutting off when loops exists
I can get Sankey diagrams to plot properly unless they contain loops (i.e. one state flows back into itself).
Read more >Draw closed-loop flow diagram using Sankey package
I'd like to use the LaTeX Sankey package to draw the following closed-loop circular flow diagram, where the width or thickness of the...
Read more >Solved: Feedback loops in a sankey diagram
Solved: Does anyone know how to create feedback loops in a a sankey diagram? Example:
Read more >Tag: loop - Sankey Diagrams
A blog dedicated to Sankey diagrams. These diagrams visualize material or energy flows with proportional arrow magnitudes. Phineas features sample Sankey ...
Read more >Stata graphs: Sankey diagram
In this guide learn to program Sankey diagrams in Stata. ... If it doesn't work, you can manually download the network_data.dta or ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Here it is https://github.com/apache/superset/pull/18110
Oh, sorry the stale bot closed that, and sorry it didn’t get more attention. If you have any interest in re-opening that PR, we can try to get more support for it this time around.
In general, the looped sankey doesn’t see a lot of use that I’m aware of. While it’s not a high priority to fix compared to other issues/plugins, I’m happy to try to help any PR get reviews!