Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

ReactD3.1

Public visualization

ReactD3.1

0 stars0🌍 Public
NNeet Reddy
Last edited Nov 23, 2021
Created on Nov 23, 2021
Forked from Mouse Follower

The example shows a single circle that follows the mouse cursor across an SVG canvas, with its center position updated in real time. It uses React’s `useState` and `useCallback` hooks to track mouse coordinates via an `onMouseMove` event handler, and renders the circle with SVG elements. The visualization relies on React 16.9 and ReactDOM for rendering, with no additional D3 modules or data sources, demonstrating a minimal integration of interactive state management with SVG output.

AI-generated description

A program that follows your mouse with a circle.

Comments

Sign in to join the discussion.

MIT Licensed