d3-plugins icon indicating copy to clipboard operation
d3-plugins copied to clipboard

sankey: fix nodesByBreadth to have proper ordering

Open rmmh opened this issue 10 years ago • 0 comments

d3.nest().key() converts all keys into strings. d3.ascending does not coerce strings into numbers for comparison -- do it ourselves.

This improves relaxation efficiency. Before, it could traverse levels in the wrong order, taking longer to propagate values up.

rmmh avatar Feb 25 '15 22:02 rmmh