d3-voronoi-treemap usage
✓ Published0🌍 Public
A Voronoi treemap visualizes the distribution of production across different farms, using area to represent each region's economic weight. The visualization uses the `d3.voronoiTreemap` API from the `d3-voronoi-treemap` library, which partitions a circular clipping area into weighted Voronoi cells. Data is loaded from a JSON file containing hierarchical farm and country information. The SVG output includes styled cells with white borders, labels showing names and weights, and a title, with interactive hover effects that highlight individual cells.
AI-generated descriptionA bare minimum HTML page.
See also React Starter.
MIT Licensed