Skip to main content
100%

Fortune 100 BLM

✓ Published0🌍 Public
Aandrewwitherspoon
Last edited Jun 19, 2020
Created on Jun 14, 2020

A treemap visualization displays the relative sizes of corporate donations among Fortune 100 companies, with each rectangle's area proportional to the company's listed contribution amount. The visualization uses color to encode different parent groups, though the single-level hierarchy results in each company receiving a distinct color. Built with D3 v4, the code uses `d3.treemap()` with the `d3.treemapResquarify` tiling algorithm to compute the layout, and renders cells as SVG groups with rectangles and text labels. Data comes from a local JSON file, and the animation transitions between size-based and count-based sums.

AI-generated description

A 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>

gpl-3.0 Licensed

Similar vizzes