Skip to main content
๐ŸŒ Public

Share visualization

Send this visualization to others.

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

Public visualization

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

0 stars3๐ŸŒ 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

Comments

Sign in to join the discussion.

MIT Licensed