Skip to main content
100%

Mosaic3

✓ Published0🌍 Public
AAjayyy
Last edited Jul 1, 2018
Created on Jul 1, 2018

This example shows a mosaic-like visualization built from a Voronoi diagram. A Poisson disc sampler generates a set of evenly spaced sample points across a 960×500 SVG canvas, and `d3.voronoi()` computes the corresponding polygons. Each polygon’s fill and stroke color are derived from its data point’s position using a `d3.lab()` color space, producing a smooth radial gradient effect from the center. The code uses D3 v4, SVG paths, and the custom `poissonDiscSampler` function.

AI-generated description

works with d3.v4

forked from <a href='http://bl.ocks.org/Stroked/'>Stroked</a>'s block: <a href='http://bl.ocks.org/Stroked/507291e62056ff008c470a3b8e7e26b9'>Mosaic</a>

mit Licensed

Similar vizzes