parse with d3 practice
✓ Published0🌍 Public
A circle tracks the user’s mouse movements across a full-window SVG canvas, updating its center position in real time. Built with React 16.9 and D3 v7, the app uses a `useState` hook to store mouse coordinates and a `useCallback` handler to capture `clientX` and `clientY` from the SVG’s `onMouseMove` event. The circle’s `cx` and `cy` attributes are bound directly to that state, with a fixed radius of 30 pixels. No external data is loaded; the visualization purely demonstrates interactive event handling and state-driven rendering.
AI-generated descriptionA program that follows your mouse with a circle.
MIT Licensed