Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Fork of Hello HTML

Public visualization

Viewing a saved revision (read-only)

a82ad39cc1824f328f80990f051063c7

Fork of Fork of Hello HTML

0 stars1🌍 Public
AAmir
Last edited Feb 26, 2021
Created on Feb 25, 2021
Forked from Smile Face

This example shows a yellow circle that follows the mouse cursor within an SVG canvas. The circle’s position updates reactively as the user moves the mouse over the 1000×500 viewport. Built with React 16.9 and D3 v5, it uses React’s `useState` and `useCallback` hooks to track mouse coordinates and re-render the circle’s `cx` and `cy` attributes. The SVG element’s `onMouseMove` event triggers state updates, demonstrating a simple interaction pattern without any external data source.

AI-generated description

fallow mouse