🌍 Public
Viewing a saved revision (read-only)
64b90ab3849e4c9da019516fd549e60b
D3 Meetup: Svelte + D3
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