Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Mouse Follower

Public visualization

Mouse Follower

0 stars0🌍 Public
Iionut-g
Last edited Dec 20, 2021
Created on Dec 19, 2021

A smiley face rendered in SVG follows the mouse as it moves across the screen. The visualization uses React to manage the component state and D3’s `csv` loader to fetch color data from a remote GitHub gist, displaying each color as a div. The underlying SVG elements are positioned based on the cursor coordinates, with the face drawn using simple circles for the head, eyes, and mouth. The example demonstrates combining React’s declarative UI with D3 for asynchronous data loading and SVG rendering.

AI-generated description

Smiley face implementation with React.

Comments

Sign in to join the discussion.

MIT Licensed