Hey all,
While the correct partition is something more along the lines of this:
There was no where I could tell for sure, but I'm assuming for partition
d.x and d.dx
d.x0 and d.x1
accordingly. Also in d3.js v3 for his bilevel partition example he is overriding the value and children function for the partition like so
partition
.children(function(d, depth) { return depth < 2 ? d._children : null; })
.value(function(d) { return d.sum; });
partition
.value(function(d) { return d.size; })
.nodes(root)
.forEach(function(d) {
d._children = d.children;
d.sum = d.value;
d.key = key(d);
d.fill = fill(d);
});
root = d3.hierarchy( root )
.sum( function ( d )
{
return d.size;
})
.each( function ( d )
{
d.data._children = d.children;
d._children = d.children;
d.key = key( d );
d.fill = fill( d );
});