Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Fork of Fork of #HAW: Svelte + D3: Voronoi

Public visualization

Viewing a saved revision (read-only)

a419ba04851d4d0d9388a0a52985be4c

Fork of Fork of Fork of #HAW: Svelte + D3: Voronoi

0 stars1🌍 Public
NNita
Last edited Dec 3, 2025
Created on Dec 3, 2025

This example builds an interactive Voronoi diagram from 100 randomly generated points, with colorful, semi-transparent cells rendered as SVG paths. It uses `d3.Delaunay` from D3 v7 to compute the Voronoi tessellation and `Delaunay.voronoi().renderCell()` to generate each cell path. Moving the mouse over the visualization updates the first data point to follow the cursor, recalculating the tessellation in real time. Each point is also marked with a small violet glyph and a circle, layered over a dark gradient background.

AI-generated description