Skip to content

Commit

Permalink
Merge branch 'feature/division-by-zero-in-partition' of https://githu…
Browse files Browse the repository at this point in the history
…b.com/maoe/d3 into release
  • Loading branch information
mbostock committed Aug 15, 2011
2 parents 59707f9 + c7ce627 commit 37a84d9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion d3.layout.js
Expand Up @@ -609,7 +609,7 @@ d3.layout.partition = function() {
n = children.length,
c,
d;
dx /= node.value;
dx = node.value ? dx / node.value : 0;
while (++i < n) {
position(c = children[i], x, d = c.value * dx, dy);
x += d;
Expand Down

0 comments on commit 37a84d9

Please sign in to comment.