Skip to main content
100%

ATR

✓ Published1🌍 Public
DDaniel Marx
Last edited Jan 31, 2020
Created on Jan 29, 2020
Forked from Por TCH

This visualization uses a Voronoi treemap to display hierarchical data, with each cell representing a data point and its size proportional to a weight value. The code leverages the `d3-voronoi-treemap` plugin along with `d3-weighted-voronoi` and `d3-voronoi-map` to compute the layout, while D3 v4 handles the SVG rendering. The example remakes a chart about the costs of being fat, using a JSON dataset with cluster groups and numeric codes. It includes a button to export the visualization to a PNG via the canvas-toBlob library and FileSaver.js.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes