Fork of Loading Data with React & D3
✓ Published0🌍 Public
This example demonstrates how React and D3 can work together to load and summarize a dataset of cars. The application fetches a CSV file from a GitHub gist using D3’s `csv` method and stores the parsed result in React state via the `useState` and `useEffect` hooks. Once loaded, it displays a text summary—computed with `d3.csvFormat`—showing the file size in kilobytes, the number of rows, and the number of columns. While the data is pending, the interface shows a "Loading..." message.
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