Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

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

Public visualization

Viewing a saved revision (read-only)

b3e7668ba9384912a9826a2aebcf9460

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