Skip to main content
100%

Fork of d3-voronoi-treemap usage

✓ Published0🌍 Public
PPekingWaldo
Last edited Aug 21, 2023
Created on Aug 21, 2023

A Voronoi treemap shows the global economy by GDP as of January 2017, with countries as cells sized by their economic weight and grouped by continent, each with a distinct color. The circular layout clips the treemap using a computed polygon, and hover effects highlight individual cells. The visualization is built with React, D3 v4, and the d3-voronoi-treemap plugin, which combines d3-weighted-voronoi and d3-voronoi-map to compute the layout. Data comes from a JSON file listing GDP values and country codes, and the SVG rendering includes labels, legends, and a title.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes