🌍 Public
Fork of Loading Data with React & D3
This example demonstrates how to load and summarize a CSV dataset of CSS named colors using React and D3. It displays a brief text summary showing the file size in kilobytes, row count, and column count. The code uses React’s `useState` and `useEffect` hooks to manage asynchronous data loading, with `d3.csv` fetching the remote dataset. React renders the message from the `message.js` utility, which formats the summary using `d3.csvFormat` to calculate data size.
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
Comments
Sign in to join the discussion.