Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Loading D3 and React

Public visualization

Loading D3 and React

0 stars0🌍 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.

Comments

Sign in to join the discussion.

MIT Licensed