Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Follower 2

Public visualization

Viewing a saved revision (read-only)

9fe11c92302c49fe8bbb5cda3a4dd3c2

Fork of Follower 2

0 stars0🌍 Public
Jjth500
Last edited Apr 22, 2023
Created on Apr 22, 2023
Forked from Follower 2

This example renders a single circle that follows the mouse cursor across an SVG canvas sized to the browser window. The circle's position updates on every mouse movement using React's state management through the `onMouseMove` handler. The visualization uses React 16.9 with hooks (`useState`), ReactDOM to mount the component, and D3 v5 (imported as `d3`) to fetch a CSV of CSS named colors from a GitHub gist, though the fetched data is not used in the displayed output.

AI-generated description

Smiley face implementation with React.