question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Sankey diagram with loops doesn't work

See original GitHub issue

A clear and concise description of what the bug is.

How to reproduce the bug

  1. Add sankey diagram with loops using instructions https://www.npmjs.com/package/@superset-ui/legacy-plugin-chart-sankey-loop
  2. 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
  1. Create chart using Sankey Diagram with Loops
  2. See error image

Expected results

Build sankey diagram with loop like in examples image

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:open
  • Created 2 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
svdimchenkocommented, Jul 28, 2022
0reactions
rusackascommented, Dec 13, 2022

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!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found