Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Smiley Face Part III

Public visualization

Fork of Smiley Face Part III

0 stars0🌍 Public
PPratik Raja
Last edited Jul 31, 2024
Created on Jul 31, 2024

A smiley face rendered as a yellow SVG circle follows the mouse cursor across a 960-by-500 viewport. Built with React and D3 v5, the app uses React’s `useState` hook to track cursor coordinates from an `onMouseMove` event on the SVG element, and the `arc` function from D3 is imported though not directly used in the visible code. The face updates its center position in real time, demonstrating a simple React-D3 integration for interactive graphics.

AI-generated description

Smiley face implementation with React & D3.

Comments

Sign in to join the discussion.

MIT Licensed