Fork of Zoomable Icicle
This example shows a zoomable, interactive icicle chart that visualizes a hierarchical dataset, allowing users to click on rectangular segments to drill down into nested categories. The visualization renders as an SVG with smooth animated transitions, where each cell is colored based on its top-level category. The code uses the D3.js v7 library, specifically `partition()`, `hierarchy()`, and `scaleOrdinal()`, along with a data file hosted on GitHub Gist. The JavaScript implementation handles the interactive zooming logic and uses SVG transitions for the 750-millisecond animated updates.
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.