Circle Trail
✓ Published0🌍 Public
A white circle follows the mouse cursor across a purple background, leaving a trail of its previous positions. The visualization uses d3-selection’s `select` and `selectAll` with a `.join()` pattern to append or update a single circle element on each `mousemove` event. The circle’s coordinates are stored in a state object and updated via a `setState` callback, while `window.innerWidth` and `window.innerHeight` set the SVG size. This demonstrates a simple, event-driven rendering loop with D3 v7.
AI-generated descriptionLeaves a trail of white circles
MIT Licensed