Skip to main content
100%

Svelte 5 Starter

✓ Published2🌍 Public
MMatthias Stahl
Last edited Nov 26, 2025
Created on Nov 26, 2025

This example shows six circles positioned across an SVG canvas using D3 scales, with colors and radii drawn from static data. The Svelte 5 starter uses `$state` and `$derived` runes to track container dimensions and create `scaleLinear` functions from D3, mapping x- and y-coordinates to the responsive width and height. A reusable Circle component uses Svelte 5 `$props()` to pass cx, cy, r, and fill values, with circles given a fixed opacity via CSS.

AI-generated description
MIT Licensed

Similar vizzes