Fork of Loading Data with React & D3
✓ Published0🌍 Public
This example demonstrates how to load and summarize a CSV dataset using React and D3. It fetches CSS named colors data from a GitHub gist via `d3.csv`, stores the parsed result in React state with the `useState` and `useEffect` hooks, and displays a loading message until the data arrives. The rendered output shows the data size in kilobytes, row count, and column count, computed using `d3.csvFormat`. The app uses React 16.9, D3 v5, and renders into a DOM root element.
AI-generated descriptionA program that loads in some data about CSS named colors using D3 utilities, and uses React state to keep track of the data.
MIT Licensed