Treemap Top of Funnel Growth
A treemap animation visualizes top-of-funnel growth across quarters, with cell area and color intensity both encoding value. The extended `d3.layout.treemap2` calculates the maximum sibling area to drive an orange-to-lightgray color scale, and sorts cells so the largest sits top-right of each group. Data from `flare.json` shows sales and marketing metrics for 2017Q4 and 2018Q1.
AI-generated descriptiona treemap prototype where the
- area of the cell
- the maxArea of all the cells that share the same depth and same parent with that cell
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 <a href='http://bl.ocks.org/micahstubbs/'>micahstubbs</a>'s block: <a href='http://bl.ocks.org/micahstubbs/6eed3b92121facaf489f'>Treemap Top of Funnel Growth</a>