plotly / plotly.js

Open-source JavaScript charting library behind Plotly and Dash
https://plotly.com/javascript/
MIT License
16.92k stars 1.85k forks source link

Distorted link loop in sankey diagram #7132

Open mateo-forjan opened 1 month ago

mateo-forjan commented 1 month ago

Hi, Hi, I figured out that in Sankey diagram in some cases where the link should be a loop, e.g. link from Node 4 to Node 1 in (https://codepen.io/mateo-forjan/pen/BagVGEx), that loop becomes distorted if you move the Node 4 to the left of the Node 1, as in (https://codepen.io/mateo-forjan/pen/wvLXQNj). Distortion makes it hard to understand what's happening and gives the impression that something went wrong.