Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of mouse event

Public visualization

Fork of mouse event

0 stars1🌍 Public
LLívia Pinheiro
Last edited Aug 13, 2024
Created on Aug 13, 2024

A single SVG circle follows the mouse cursor across a 960-by-500 canvas. The visualization uses React's `useState` and `useCallback` hooks to track pointer coordinates from the `onMouseMove` event, updating the circle's center position in real time. The code imports `range` from d3 but does not use it. The graph is rendered through React's `ReactDOM.render` method, with the SVG container set to hide page overflow.

AI-generated description

A bare minimum HTML page.

Comments

Sign in to join the discussion.

MIT Licensed