Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Mouse Follower

Public visualization

Mouse Follower

0 stars1🌍 Public
SShuyu Zheng
Last edited Dec 23, 2020
Created on Dec 23, 2020

A yellow circle with a black border acts as a mouse follower, tracking the pointer's position inside an SVG space. Built with React hooks (`useState`, `useCallback`), it updates circle coordinates via `onMouseMove` events under D3 v5. The example demonstrates React-D3 integration for interactive SVG rendering without explicit data, using a fixed 960x500 viewport.

AI-generated description

A program that follows your mouse with a circle.

Comments

Sign in to join the discussion.

MIT Licensed