Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Loading data using React

Public visualization

Loading data using React

0 stars0🌍 Public
Ccharles-duron
Last edited Nov 6, 2022
Created on Nov 6, 2022
Forked from Mouse follower

This example combines React and D3 v7 to create a smiley face whose eyes jitter randomly on each render. The face is drawn with SVG primitives, including a linear gradient for the face, and D3’s `arc` API generates the mouth path. React components compose the face, eyes, and mouth, while `useState` and `useCallback` track mouse movement to position a separate outline circle, demonstrating interactive SVG rendering in a React framework. The source data is entirely procedural, with no external data loading.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

Comments

Sign in to join the discussion.

MIT Licensed