Skip to main content
100%

loading data with React D3

✓ Published0🌍 Public
Yyeeet0421
Last edited Sep 21, 2022
Created on Sep 20, 2022
Forked from mouse follower

This example demonstrates how to load and render CSS color data using React and D3 utilities. It fetches a CSV file from a GitHub gist via `d3.csv`, stores the parsed result in React state with `useState`, and displays a loading message until data arrives. Once loaded, the application maps each row to a horizontal colored div, using the `RGB hex value` column as the background color. The code imports `arc` and `csv` from D3, though only `csv` is actively used for data fetching.

AI-generated description

loads in some data using D3 utilities, and uses React state to keep track of the data.

render data with react

MIT Licensed

Similar vizzes