🌍 Public
Viewing a saved revision (read-only)
8fd93464934c4025b4574a9ec2964e33
Follow mouse with circle.
A circle follows the mouse as it moves across an SVG canvas. The demonstration uses React state to track cursor coordinates on mouse move and updates the circle’s position accordingly. Built with React 17 and D3 v6, the visualization relies on React’s `useState` and `useCallback` hooks, while the SVG circle’s `cx` and `cy` attributes are bound to the current mouse position.
AI-generated descriptionDemonstrates fundamental DOM manipulation using D3.js by making a smiley face whose eyebrows move.