Marks & Channels Graphic
✓ Published0🌍 Public
This example reproduces a treemap visualization from the Marks & Channels Graphic in Chapter 5. It uses d3.hierarchy and d3.treemap with a slice-dice tiling to layout nested data from a custom JSON file, coloring each leaf as a simple rectangle. The SVG rendering assigns each leaf a `<g>` group and a `<rect>`, sized proportionally to its data value. The code references D3 v4 and Curran’s treemap example as its basis.
AI-generated descriptionA simple example of the treemap visualization. The goal was to attempt to reproduce a visualization from the Marks & Channels Graphic from Chapter 5.
This code is based on the example of the treemap in Curran's viz: https://vizhub.com/curran/040aadea1c6740df819f410f2828a552
MIT Licensed