d3-voronoi-treemap
✓ Published0🌍 Public
KKcnarf
Last edited Jun 28, 2019
Created on Jun 28, 2019
The visualization displays global economic output by GDP, showing a treemap that morphs between rectangular and Voronoï layouts. It uses D3.js v4 with the d3-voronoi-treemap plugin, which iteratively partitions space to create weighted Voronoï polygons. Animated transitions between the two layouts are powered by flubber's `fromRect` interpolation, applied via `transition.attrTween` on SVG paths. The data comes from a JSON file of country GDP weights grouped by continent, with each region assigned a distinct color.
AI-generated descriptionThis block experiments the use of @veltman's flubber d3 plugin in order to transition back and forth from a rectangular treemap to a Voronoï treemap (computed thanks to @kcnarf's d3-voronoi-treemap plugin).
Acknowledgments to :
- D3.js (v.4)
- flubber d3 plugin
- d3-voronoi-treemap plugin
- blockbuilder.org
lgpl-3.0 Licensed