Fiddling with d3.geom.voronoi and a polygon.
The polygon’s vertices are fed into the Voronoi layout, that yields the colored regions as output. Also, links are drawn as dashed lines.
Relevant examples by Mike Bostock: