Skip to main content
100%

Zoomable Icicle (d3 v4)

✓ Published0🌍 Public
TThanaporn-sk
Last edited Mar 10, 2017
Created on Mar 10, 2017

This zoomable icicle chart displays the hierarchical structure of the Flare dataset, with rectangles sized and colored by category. Clicking a rectangle zooms in to reveal its children, while clicking the top bar returns to the previous level. Built with D3 v4, it uses `d3.partition()` to compute the layout, `d3.hierarchy()` for data nesting, and `d3.scaleOrdinal` with `d3.schemeCategory20c` for coloring. Transitions are animated over 750 milliseconds, adjusting the x and y scales to focus on the selected node.

AI-generated description

Click anywhere to zoom in, or click on the top bar to zoom out.

Converting Bostock's classic to d3 v4. You may find the diff helpful in understanding the d3-hierarchy api changes! Note that I didn't touch the json.

forked from <a href='http://bl.ocks.org/tophtucker/'>tophtucker</a>'s block: <a href='http://bl.ocks.org/tophtucker/a35c0f4f32400755a6a9b976be834ab3'>Zoomable Icicle (d3 v4)</a>

gpl-3.0 Licensed

Similar vizzes