Skip to main content
100%

Fork of Circles with D3

✓ Published0🌍 Public
NNita
Last edited Feb 4, 2024
Created on Feb 4, 2024
Forked from Circles with D3

This example uses D3 to draw a set of colored, semi-transparent circles on a light green background. The visualization is generated from a hard-coded array of data points, each specifying the circle's x and y coordinates, radius, and fill color. The Svelte-based code employs d3’s `select` function to manage the SVG container and repeatedly updates the circles using the `.join` pattern, setting attributes like `cx`, `cy`, `r`, `fill`, and `opacity` directly from the data.

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