4 ms·
Bostock is really a master of his own language... and is very expressive with it. Even as many (including myself) are grappling with the basics. This particul
by mrcactu5 11y ago
Bostock is really a master of his own language... and is very expressive with it. Even as many (including myself) are grappling with the basics.
This particular algorithm seems to be related to the Voronoi Tesselation -- deciding which points get allocated to each of the k different centers
http://bl.ocks.org/mbostock/4060366 http://bl.ocks.org/mbostock/4060366
- nantes 11y agoThis one actually isn't Mike Bostock. It's just "hosted" via his `bl.ocks.org` service. The code itself lives in a Gist[0]. The original author is blacki[1][2]. [0] https://gist.github.com/blacki/ebba08223eba20b56b62 https://gist.github.com/blacki/ebba08223eba20b56b62 [1] http://bl.ocks.org/blacki http://bl.ocks.org/blacki [2] https://github.com/blacki https://github.com/blacki