Voronoi Sorting v2 update for d3.unconf badge
Randomly generated points form a Voronoi diagram of black polygons with white strokes, shaded using a color scale based on polygon area. The animation cycles through two phases: first, the polygons slide vertically into sorted order by area using a log scale, then they transition back to their original positions while recomputing the Voronoi cells and updating their fill colors from a randomly selected sequential color scheme. The code uses d3.voronoi, d3.polygonArea, and d3.scaleLog to drive the transitions with d3.transition.
AI-generated descriptionMade some changes for using this as a badge for d3.unconf. The background color is now black and the stroke color is now white for a cleaner look with the badge's color scheme. It also sorts vertically to fit with the badge's orientation.
The previous versions are here: <a href='http://bl.ocks.org/alexmacy/07389b74c1a83b589c1d9c67c6cef14c'>Voronoi Shuffling v1</a>, <a href='http://bl.ocks.org/alexmacy/1944e5d8967453e1f7c128b7d668761f'>Voronoi Shuffling v2</a>, <a href='http://bl.ocks.org/alexmacy/5f9ba684d2c9ec68392dee86ff9636bb'>Voronoi Shuffling v3</a>, & <a href='http://bl.ocks.org/alexmacy/2dc8e86b3fde00c23ccad92e390a2ef5'>Voronoi Sorting v2</a>
forked from <a href='http://bl.ocks.org/alexmacy/'>alexmacy</a>'s block: <a href='http://bl.ocks.org/alexmacy/2dc8e86b3fde00c23ccad92e390a2ef5'>Voronoi Sorting v2 update for d3.unconf badge</a>