Loading Data with React & D3
✓ Published1🌍 Public
This example demonstrates a minimal React application that uses D3 to load and summarize a remote CSV dataset. It displays a text message with the file size in kilobytes, row count, and column count, while showing "Loading..." until the data arrives. The app uses D3's `csv` loader to fetch data from a Coupang Redash API endpoint, stores the result in React state via a `useEffect` hook, and formats the summary with `d3.csvFormat`. The interface relies on ReactDOM to render the final output to the page.
AI-generated descriptionA program that loads in some data using D3 utilities, and uses React state to keep track of the data.
MIT Licensed