-
Notifications
You must be signed in to change notification settings - Fork 684
Sankey diagram hangs with more than 6 nodes #102
Comments
I think I am seeing the same problem (browser freezes in computeNodeBreadths), but I was not able to reproduce the problem with the example given here, even when increasing the number of links by just duplicating blocks of links in the JSON. |
It turns out that the problem with my chart was incorrect input data that caused a cycle in the graph. I cannot reproduce the problem described here. |
I can't reproduce this problem either. |
I am also getting same issue. Here is the url Please set "var testLinksCount = 500 ;" to reproduce the issue . |
I had a similar issue to @thiloplanz. It turned out I had generated a link with a source and target of the same value resulting in an infinite cycle, so just in case anyone else has this problem! |
Im having issues using the sankey diagram with my data.
Basically I have 7 nodes connected with a not defined number of links between them.
I created an example of data.json that hangs using 12 links between each node:
There are some factors that make it work normally (no hangs):
There are also some facts that make it slows down gradually (short hangs):
I've tracked the hangs and it occurs in sankey.js line 120, inside computeNodeBreadths() in node.sourceLinks.forEach.
As you see in my data example above, I dont have any circular connections.
Also, I did no changes in sankey.js and i get it from this repository: https://github.com/d3/d3-plugins/tree/master/sankey, and my index.js is exactly like in this example http://bl.ocks.org/d3noob/5028304 (i based my sankey propotype in this example)
Is there any reported bug or solution for this situation?
Best regards,
Marius
The text was updated successfully, but these errors were encountered: