block by fil 007e6492155fc18906fb184cc486913b

Voronoi binning (animated for Badgetron) [UNLISTED]

Full Screen

Group data points around the largest points.

The recipe is as follows:

1) sort data points according to their sizes (here size = d[3])

2) use top 10% points as Voronoi sites

3) bin all data points according to their Voronoi cell, using voronoi.find(). The binning is rendered by using the Voronoi sites’s color.

See also the static version — much less code to parse!

Original work by Philippe Rivière for d3-voronoi (issue 17).

forked from Fil‘s block: Voronoi binning (animated)

index.html