tomshanley / d3-sankey-circular

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

Circular links congregate top or bottom #15

Open tomshanley opened 6 years ago

tomshanley commented 6 years ago

Depending on the order of the links in the dataset, the algorithm may assign circular links to be all top or all bottom, as it bases its decisions on what the source/target node have already been assigned.

  1. The algorithm could be optimised to give more weight to balancing top and bottom, but which may result in more overlaps.

  2. Or, the links could be resorted to provide a more pleasing output (with possible flag to turn off/on, as this would result in the nodes being displayed in different order across the page)

  3. And/or, links from nodes in the end column to nodes in the first column could be go either way regardless of the link types associated to the node, as those will have no overlaps with normal links

tomshanley commented 6 years ago

3 works fine in test, so will be added at next release. 2 will be considered next