Skip to content
This repository was archived by the owner on Nov 7, 2018. It is now read-only.

Commit c64935b

Browse files
committed
Merge remote-tracking branch 'hongtaobai/master'
2 parents 6400fd4 + 65730dc commit c64935b

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

sankey/sankey.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,9 @@ d3.sankey = function() {
118118
node.x = x;
119119
node.dx = nodeWidth;
120120
node.sourceLinks.forEach(function(link) {
121-
nextNodes.push(link.target);
121+
if (nextNodes.indexOf(link.target) < 0) {
122+
nextNodes.push(link.target);
123+
}
122124
});
123125
});
124126
remainingNodes = nextNodes;

0 commit comments

Comments
 (0)