Skip to main content
100%

Corey's Mouse Follower - week5

✓ Published0🌍 Public
Ccoreyfnolan@gmail.com
Last edited Feb 9, 2024
Created on Feb 9, 2024
Forked from Circles with D3

A single blue circle follows the mouse pointer across an SVG canvas, changing to a random color on click. The visualization uses D3’s `select` and `pointer` methods within a Svelte component, with a `ResizeObserver` managing canvas dimensions and `setState` updating circle coordinates and fill color on each interaction event.

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