Skip to main content
100%

D3 treemap tutorial

✓ Published0🌍 Public
JJdlv00
Last edited Oct 31, 2017
Created on Oct 31, 2017

This example demonstrates a D3 treemap that visualizes task data from a CSV file, aggregated by priority (e.g., WISH, COULD) and then by status (DONE, TODO). Each leaf rectangle’s size encodes the total time spent on tasks in that group, while its color indicates the priority category, with a legend for reference. The visualization uses `d3.nest()` for hierarchical aggregation, `d3.hierarchy()` to build the tree, and `d3.treemap()` to compute tile layouts. Rendering is done with SVG, showing rectangles, text labels, and hover titles.

AI-generated description

Built with blockbuilder.org

forked from <a href='http://bl.ocks.org/as-eldlc/'>as-eldlc</a>'s block: <a href='http://bl.ocks.org/as-eldlc/beb149d6d5c4747eccdbc84106417e77'>D3 aggregation tutorial</a>

forked from <a href='http://bl.ocks.org/as-eldlc/'>as-eldlc</a>'s block: <a href='http://bl.ocks.org/as-eldlc/69f7d7c325583911fec04a6f04397c83'>D3 treemap tutorial</a>

mit Licensed

Similar vizzes