Fork of Fork of #HAW: Svelte + D3: Voronoi
✓ Published3🌍 Public
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 descriptionMIT Licensed