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

Commit

Permalink
Merge remote-tracking branch 'hongtaobai/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
jasondavies committed Sep 3, 2014
2 parents 6400fd4 + 65730dc commit c64935b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sankey/sankey.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,9 @@ d3.sankey = function() {
node.x = x;
node.dx = nodeWidth;
node.sourceLinks.forEach(function(link) {
nextNodes.push(link.target);
if (nextNodes.indexOf(link.target) < 0) {
nextNodes.push(link.target);
}
});
});
remainingNodes = nextNodes;
Expand Down

0 comments on commit c64935b

Please sign in to comment.