Skip to main content
100%

Fork of Circles with D3

✓ Published0🌍 Public
Rrichard.adamson@hotmail.com
Last edited Feb 17, 2024
Created on Feb 17, 2024
Forked from Circles with D3

This example displays six semi-transparent circles of varying sizes and colors scattered across a pale green background. The circles are drawn using D3’s data join pattern within a Svelte component. The code imports `select` from D3, sets the SVG dimensions to match the container, and binds an array of position, radius, and fill values to each circle. Rendering is handled reactively when the container’s size changes, with opacity fixed at 0.708.

AI-generated description

Creating circles with D3.

Challenge

  • Fork this example
  • Modify it
  • Maybe make it Halloween themed
  • Maybe make it Christmas themed
  • Be creative

Svelte

Here's a video on how to get started with Svelte as well!

MIT Licensed

Similar vizzes