-
Notifications
You must be signed in to change notification settings - Fork 19.7k
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
Browser become unresponsive when sankey chart is generated with specific data #6555
Comments
I'd say there is a bit of a recursion going on in links, not sure whether this could be prevented by echarts? An error thrown to console saying which link causes this would be awesome:) |
Hi @jarben, Browser become inactive and shows nothing in browser console/log. |
@lisachristina1234 Here's how you can test it:
You see, there's much you can do to debug it, rather than providing the whole data and hoping for someone to save your time. |
Hi @Ovilia See following file for which chart is generating even the content of this file is more than SankeyNotGenerated.xlsx : |
@lisachristina1234 Hi, sorry I didn't quite understand what's your conclusion or observation here after these attempts? |
Hi @Ovilia, |
Hello @lisachristina1234, this problem is caused by the existence of cycles in the original input data. The sankey diagram theoretically only supports Directed Acyclic Graph (DAG), so the former layout algorithm treats input data as the directed acyclic graph as default, when there is a cycle, it fall into an infinite loop. The modified layout algorithm will traverse the node to calculate the layout in topological order. If the cycle is judged, it will report an error and will not be drawn. |
The revised function will be released with the next version, Welcome to verify, If you have any questions, you can reopen this issue. ~ with the best regard! |
@deqingli - what is the name of the new setting that supports cycles in the sankey diagram? or am I misterpreting your last comment - thanks! |
@cliffordfajardo It does not support it, it just returns the error instead of falling into an infinite loop. |
Summary : Sankey chart is not generating for following option data.
Version & Environment
Expected behaviour :
Sankey chart should be generated with the given data.
I am not able to find what is special in this data which is why sankey chart is not generating.
Its not too much data and even not creating more than 100 links or nodes.
I hope echarts team would soon figure out why chart is not generating.
Thanks in advance.
ECharts option
The text was updated successfully, but these errors were encountered: