Skip to main content
100%

Fork of Svelte + D3 Starter

✓ Published0🌍 Public
LLuisa Vasquez
Last edited Mar 6, 2024
Created on Mar 6, 2024

Four thin vertical bars mark the positions of four data points along a pink horizontal strip, with each bar placed by a linear scale mapping the domain 1–10 to the width of the SVG. The visualization uses D3’s `scaleLinear` inside a Svelte component to compute x-coordinates, while the bars themselves are simple SVG `<rect>` elements with low opacity and white fill. The data is a static array of numeric values, and the chart demonstrates a minimal integration of D3 scales with Svelte’s template syntax and reactive declarations.

AI-generated description
MIT Licensed

Similar vizzes