Skip to main content
100%

d3-voronoi-treemap usage

✓ Published2🌍 Public
Jjsong
Last edited Jan 25, 2020
Created on Jan 25, 2020
Forked from Itapipiré

This visualization uses the `d3-voronoi-treemap` plugin to display global GDP shares by country and continent, based on data from a `globalEconomyByGDP.json` file. A clipped Voronoi treemap partitions a circular region into labeled cells sized by each economy’s relative weight, with continent grouping indicated by distinct colors. The rendering is built with `d3.hierarchy` and `d3.voronoiTreemap`, producing an SVG output where hovered cells are highlighted with a thick white stroke. The title and legends are drawn within the same SVG container.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes