New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chart sankey does not support a->b->a pattern #8218
Comments
Hi @shshen Thank you for reporting. You are right, circular references are not supported right now. |
Internal note: |
I did some work here, making the layout work in some cases. At least it is better now. But now we need to set chart margins to make room for the links, the next improvement would be to make the layout flow automatically. |
@TorsteinHonsi Could you see this case? |
Fixed, thanks for reporting! https://jsfiddle.net/highcharts/jfeo8tdy/2/ |
ERROR RangeError: Maximum call stack size exceeded in sankey.js |
Could you share an example? Note that new version (with fix) is not released, only available on our master branch:
|
with released |
You're right, there's still a geometry issue even though the stack size issue is resolved. As a workaround we can override the |
managed to do it with margins and clip:false |
Hello, When having a reverse flow in your data the chart will display correctly on first render but will behave differently on any resize/update action. A quick example is set up at: https://jsfiddle.net/Lelith/7omz94gc/1/ You just have to increase the size of the chart container to reproduce the issue. (original post on HC forum was https://www.highcharts.com/forum/viewtopic.php?f=9&t=44510 ) Thanks! |
Is there a workaround for this issue? When I plot a->d and b->c->d the arrangement is compressed until I resize the panel triggering a reflow
Demo: https://jsfiddle.net/applewil/ezjfarh4/6/ How do I get the uncompressed node arrangement when the panel loads? |
Hi @applewil, As a workaround, you can use the |
Expected behaviour
sankey should be able to render a->b->a
Actual behaviour
sankey render incorrectly to b->a only.
Live demo with steps to reproduce
https://jsfiddle.net/zbnu6w36/
Product version
highcharts 6.1, but i think this does not work on all versions.
Affected browser(s)
all browser types.
The text was updated successfully, but these errors were encountered: