Skip to main content
100%

Loading D3 and React

✓ Published0🌍 Public
Aatqlong
Last edited Jan 19, 2022
Created on Jan 19, 2022
Forked from Mouse Follower

This example shows a minimal React application that loads a CSV file of CSS named colors using D3 and displays the raw data as text. The code imports `useState` from React and the `csv` function from D3. It fetches data from a gist URL with `d3.csv`, then uses the asynchronous result to update the component's state. The page renders the data array directly within a `div` element, demonstrating a simple integration of D3's data-loading capabilities inside a React component.

AI-generated description

Smiley face implementation with React & D3.

MIT Licensed

Similar vizzes