Skip to main content
๐ŸŒ Public

Share visualization

Send this visualization to others.

Svelte + D3: Voronoi

Public visualization

Svelte + D3: Voronoi

3 stars2๐ŸŒ 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

Comments

Sign in to join the discussion.

MIT Licensed