Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

D3 Color Parser

Public visualization

Viewing a saved revision (read-only)

1d6527ab5d084b34855fd4716852ab2e

D3 Color Parser

0 stars0🌍 Public
Ddan815
Last edited Aug 20, 2022
Created on Aug 20, 2022

A black circle follows the mouse cursor over a blank SVG canvas in this interactive React application. The code fetches a CSV file of CSS named colors from a GitHub gist and parses it with D3's `csvParse` function, though the parsed data is only logged to the console. The visualization itself is minimal, demonstrating event handling with React's `onMouseMove` and state management via `useState` and `useCallback`. The SVG circle's position updates directly from `clientX` and `clientY` coordinates.

AI-generated description

Smiley face implementation with React.