Skip to main content
100%

Loading data with React & D3

✓ Published0🌍 Public
TTulioChiodi
Last edited May 13, 2021
Created on May 13, 2021
Forked from Mouse follower

A React application demonstrates asynchronous data loading with D3, using React state to track whether a CSV dataset is loaded. The app fetches CSS named colors from a GitHub gist via `d3.csv` and stores the parsed result in React's `useState` hook. The interface displays a simple text indicator that changes from "loading" to "loaded" once the data arrives. The example uses React 16.9, D3 v6, and renders only a plain text message rather than any SVG visualization, with the SVG markup present in the HTML file commented out.

AI-generated description

A program that loads in some data using D3 utilities, and uses REact state to keep track of the data.

MIT Licensed

Similar vizzes