This block illustrates the use of the d3-voronoi-map plugin. This block is a remake of the HowMuch.net's post The Costs of Being Fat, in Actual Dollars.
The d3-voronoi-map plugin produces Voronoï maps (one-level treemap). Given a convex polygon (here, a 60-gon simulating a circle for each gender) and weighted data, it tesselates/partitions the polygon in several inner cells, such that the area of a cell represents the weight of the underlying datum.
forked from Kcnarf's block: d3-voronoi-map usage
Updated missing url https://raw.githack.com/Kcnarf/d3-weighted-voronoi/master/build/d3-weighted-voronoi.js to https://raw.githack.com/kcnarf/d3-weighted-voronoi/master/build/d3-weighted-voronoi.js
Updated missing url https://raw.githack.com/Kcnarf/d3-voronoi-map/master/build/d3-voronoi-map.js to https://raw.githack.com/kcnarf/d3-voronoi-map/master/build/d3-voronoi-map.js
https://d3js.org/d3.v4.min.js
https://raw.githack.com/Kcnarf/d3-weighted-voronoi/master/build/d3-weighted-voronoi.js
https://raw.githack.com/Kcnarf/d3-voronoi-map/master/build/d3-voronoi-map.js