Skip to main content
100%

Q4 2017

✓ Published0🌍 Public
WWeikerWT
Last edited Jun 25, 2018
Created on Jun 25, 2018

This animated treemap visualizes Q4 2017 data using a custom extension of `d3.layout.treemap` called `d3.layout.treemap2`. Each cell’s area encodes a numeric value, while its color maps the same value onto an orange-to-lightgray scale, with the maximum area among sibling cells at the same depth as the reference. The layout sorts sibling cells by value in ascending order, placing the largest cell in the top-right of each group. The animation reveals the hierarchy progressively, and the dataset includes categories such as Pipeline Growth and Collaboration Risk Assessment with leaf sizes ranging from 12 to 550. The visualization is a treemap prototype built with D3, forked from Micah Stubbs’s block.

AI-generated description

a 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'>Q4 2017</a>

cc0-1.0 Licensed

Similar vizzes