Treemap from bl.ocks.org
✓ Published0🌍 Public
This treemap visualizes the hierarchical structure of the Flare data set, using nested rectangles whose areas encode each leaf’s size value. Users can toggle between summing by size or by count via radio buttons, which triggers a smooth 750ms transition of the rectangles. The visualization is built with D3 v4, using `d3.treemap` with the resquarify tiling function, `d3.hierarchy`, and `d3.scaleOrdinal` for color coding by parent category. The SVG rendering includes clip-paths for text labels and tooltip titles on each leaf.
AI-generated descriptionAn example of porting a work from bl.ocks.org into VizHub. This is a direct port of Mike Bostock’s Block: Treemap, modified only to split into separate files, and to fit in the space available.
MIT Licensed