Fork of Fork - Loading data with d3 and React
✓ Published0🌍 Public
This example demonstrates loading a CSV dataset into a React application using D3’s `d3.csv` method, then displaying a summary message with row and column counts. The React `useState` and `useEffect` hooks manage the asynchronous data fetching, while a separate `Message.js` module formats the output via `d3.csvFormat`. The visualization renders a large text message in a `<pre>` element, initially showing “Loading..” until the remote CSV from a GitHub gist arrives. It uses React 16.9 and D3 v5.11, with styling that hides overflow and sets a large font size.
AI-generated descriptionSmiley face implementation with React & D3.
MIT Licensed