Shelter assault
A treemap shows the distribution of shelter assault incidents across geographic regions, with rectangle area encoding case counts and color distinguishing regional categories like Africa and the Americas. The visualization animates between two aggregation metrics—case size and equal weighting per incident—using a 750-millisecond transition triggered by radio inputs. Built with D3 v4, it employs `d3.hierarchy`, `d3.treemap`, and the squarified tiling algorithm to recursively subdivide space, while SVG rectangles, clip paths, and text labels render the hierarchical data from a local JSON file.
AI-generated descriptionA treemap recursively subdivides area into rectangles; the area of any node in the tree corresponds to its value. This example uses color to encode different packages of the Flare visualization toolkit. Treemap design invented by Ben Shneiderman. Squarified algorithm by Bruls, Huizing and van Wijk. Data courtesy Jeff Heer.
forked from <a href='http://bl.ocks.org/mbostock/'>mbostock</a>'s block: <a href='http://bl.ocks.org/mbostock/4063582'>Treemap</a>
forked from <a href='http://bl.ocks.org/andrewwitherspoon/'>andrewwitherspoon</a>'s block: <a href='http://bl.ocks.org/andrewwitherspoon/6295da517c2ae4a0ef2e300de3b336f7'>Treemap</a>
forked from <a href='http://bl.ocks.org/andrewwitherspoon/'>andrewwitherspoon</a>'s block: <a href='http://bl.ocks.org/andrewwitherspoon/b2839890d0373b2dd20f1d129e2cadd7'>Google requests treemap</a>