Skip to main content
100%

Marks & Channels Graphic

✓ Published0🌍 Public
RRyan Fleming
Last edited Nov 7, 2018
Created on Sep 11, 2018
Forked from HTML Cars Report

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 description

A 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

Similar vizzes