a treemap prototype where the
is used to scale the color on an orange to lightgray colorscale.
the size variable is double-encoded as cell area and cell color.
I extend d3.layout.treemap
to calculate the maxArea across a set of sibling nodes and call the extended layout d3.layout.treemap2
the sort property of the treemap2 layout positions the largest area cell in the top-right of the group.
.sort(function(a, b){ return a.value - b.value })
an iteration on http://mbostock.github.io/d3/talk/20111018/treemap.html
and this StackOverflow Answer
forked from micahstubbs's block: Q1 2018
https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.6/d3.min.js