Zoomable Icicle
This example shows a zoomable icicle chart visualizing the Flare-2 dataset, where clicking a cell zooms in to reveal its nested hierarchy and clicking again returns to the parent. Built with D3 v7, it uses `d3.partition` to compute the layout, `d3.scaleOrdinal` with an interpolated rainbow color scale for categorical coloring, and `d3.transition` to animate the repositioning and resizing of SVG rectangles and text labels over 750 milliseconds. The data is loaded asynchronously via `d3.json` from a remote gist.
AI-generated descriptionA port of Observable: Zoomable Icicle by Mike Bostock to vanilla JavaScript.
The content of this work is not original - I just ported it to vanilla JavaScript. That process includes:
- Flattening the reactive data flow into a sequence of expressions,
- uploading the dataset to a Gist: Flare-2 Dataset
- renaming variables to avoid collisions with D3 imports (e.g.
partition). - minor framing work such as removing margin and scrollbars on the body.
This port was done in response to this VizHub Forum Post: Zoomable Icicle in React.