🌍 Public
Viewing a saved revision (read-only)
38823f2b9dd44be59582cc7e7f524548
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