Skip to main content
100%

D3 Meetup: Svelte + D3

✓ Published0🌍 Public
MMatthias Stahl
Last edited Nov 26, 2025
Created on Apr 26, 2024

A collection of circles drawn with Svelte and D3 displays a static scatterplot on a gray SVG canvas. Each circle’s x and y positions are mapped from fixed data coordinates using `d3.scaleLinear`, while its fill color and radius come directly from the dataset. Clicking a circle highlights it with a red stroke by comparing the clicked datum against the current selection. The example demonstrates how to mix Svelte’s reactive bindings for container dimensions with D3’s scale functions for coordinate mapping.

AI-generated description

Raw Svelte + D3 project

MIT Licensed

Similar vizzes