Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Mouse Follower

Public visualization

Viewing a saved revision (read-only)

3490c819e7c7488ab469426d15d0b6ae

Mouse Follower

0 stars0🌍 Public
Ttenghaoman
Last edited Jul 21, 2020
Created on Jul 20, 2020
Forked from Bowl of Fruits

A yellow circle follows the mouse cursor across a blank, full-window SVG canvas. The example demonstrates a simple interactive mouse-follower pattern where the circle’s center position is updated in real-time based on pointer movement. Built with React and D3 v5, it uses React’s `useState` hook to track mouse coordinates from an `onMouseMove` event, then renders the circle via SVG. D3 is imported solely for its `arc` function, though it is not used for the visualization’s core behavior.

AI-generated description

Smiley face implementation with React & D3.