Skip to main content
100%

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

✓ Published3🌍 Public
NNita
Last edited Dec 3, 2025
Created on Dec 3, 2025

A Voronoi diagram partitions a 100-point random dataset into cells around each point, with the entire diagram dynamically updating as the mouse moves across the canvas. The interactive visualization, built with Svelte and rendered as SVG, uses D3's `scaleLinear` for coordinate mapping and `Delaunay.from` to compute the Voronoi tessellation from the points. The mouse position replaces the first data point in real-time, causing the diagram to continuously recalculate and redraw.

AI-generated description
MIT Licensed

Similar vizzes