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
Sankey graph deformation on div resize when using data with a -> a pattern #13705
Comments
Hi @romanbitca, |
Here it is: Try slowly to resize the sandbox window. |
Thank you for the demo @romanbitca Simplified demo: This is caused by self-referencing node: [
31252,
31252,
199204
], When removed - works fine. |
We know that self-referencing node produces this bug. And I need to display this ‘loop’. |
I think there is a workaround you can try to implement, while this bug is open: set fixed column for a specific node:
I said it's not an easy task, because it will be tricky to calculate the column. Demo: https://jsfiddle.net/BlackLabel/19d7jrbo/3/ Just realized that issue was wrongly tagged - fixed. Simplified demo: https://jsfiddle.net/BlackLabel/tdymnhvj/1/ |
Ok, thank you. |
Expected behaviour
Smooth graph redraw.
Actual behaviour
A part of graph is deformed and alighted to right.

GIF demo included.
Function used to redraw
resize () { const { sankey } = this.$refs if (sankey) { clearTimeout(this.timeoutID) this.timeoutID = setTimeout(() => { sankey.chart.setSize(null) sankey.chart.redraw() }, 200) } }
Product version
"highcharts": "^7.1.2",
"highcharts-vue": "^1.3.5",
Affected browser(s)
All browsers.
Gif demo is recorded on Chrome.
The text was updated successfully, but these errors were encountered: