tomshanley / d3-sankey-circular

A fork of the d3-sankey library to allow circular links.
MIT License
89 stars 41 forks source link

sortNodes doesn't work as it should #46

Closed KQLYYY closed 3 years ago

KQLYYY commented 3 years ago

The default example in the repository does not work correctly, the sorting of nodes by columns is broken.

default data2 object:

Screenshot 2021-02-23 at 12 54 51

open example/index.html withliveSever:

Screenshot 2021-02-23 at 12 59 41

From the screenshot, you can see obvious inconsistencies, the nodes are not in the columns described in the data2 object. (process9, process10, process2 shouldn't be in the column '0', etc..)