Skip to main content
100%

Treemap 4.0

✓ Published0🌍 Public
663anp3ca
Last edited Oct 9, 2018
Created on Oct 9, 2018

This treemap visualization displays the hierarchical structure of the Flare dataset, with nested rectangles representing categories and leaf nodes sized by their numeric values. A dropdown menu lets users switch between five different treemap layout algorithms—Squarify, Slice, Dice, SliceDice, and Binary—which are implemented in the `d3_hierarchy` library. The code uses the `d3_hierarchy.treemap()` function from the D3 v4 alpha build, renders the result as SVG, and color-codes each top-level category using `d3.scaleCategory10()`.

AI-generated description

forked from <a href='http://bl.ocks.org/mbostock/'>mbostock</a>'s block: <a href='http://bl.ocks.org/mbostock/6bbb0a7ff7686b124d80'>Treemap 4.0</a> and all praise, credit, and attribution belongs there. This fork simply adds a select box to demonstrate the new tile methods of d3_hierarchy.

forked from <a href='http://bl.ocks.org/timelyportfolio/'>timelyportfolio</a>'s block: <a href='http://bl.ocks.org/timelyportfolio/65458b68265fd35d2f68'>Treemap 4.0</a>

forked from <a href='http://bl.ocks.org/FrissAnalytics/'>FrissAnalytics</a>'s block: <a href='http://bl.ocks.org/FrissAnalytics/c0b65e72de1f9cfc3c5bdea1950490aa'>Treemap 4.0</a>

gpl-3.0 Licensed

Similar vizzes