(parent, x0, y0, x1, y1)
| 13614 | } |
| 13615 | |
| 13616 | function treemapDice(parent, x0, y0, x1, y1) { |
| 13617 | var nodes = parent.children, |
| 13618 | node, |
| 13619 | i = -1, |
| 13620 | n = nodes.length, |
| 13621 | k = parent.value && (x1 - x0) / parent.value; |
| 13622 | |
| 13623 | while (++i < n) { |
| 13624 | node = nodes[i], node.y0 = y0, node.y1 = y1; |
| 13625 | node.x0 = x0, node.x1 = x0 += node.value * k; |
| 13626 | } |
| 13627 | } |
| 13628 | |
| 13629 | function partition() { |
| 13630 | var dx = 1, |
no outgoing calls
no test coverage detected