Skip to main content
100%

Svelte + D3: Voronoi

✓ Published0🌍 Public
MMatthias Stahl
Last edited Nov 26, 2025
Created on Feb 6, 2024

A Voronoi diagram partitions random points into cells, with a highlighted pink cell and black dot that follow the mouse cursor across the screen. The example uses D3's `Delaunay` and `voronoi` APIs to compute the diagram from 100 randomly generated data points, then renders it as SVG paths and circles in a Svelte component with reactive declarations for scales and layout.

AI-generated description
MIT Licensed

Similar vizzes