Skip to main content
100%

D3 Color Parser

✓ Published0🌍 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.

MIT Licensed

Similar vizzes