E16 Loading Data with React & D3
✓ Published1🌍 Public
This example demonstrates how to load and summarize a CSV dataset using React state and D3 utilities. It fetches public transport performance data for New Zealand regions via the `csv` function from D3 v6, storing the parsed result in React’s `useState` hook. While loading, the view displays "loading..."; once the data arrives, it renders a text summary via `message.js`, showing the file size in kilobytes, row count, and column count. The visualization is purely textual, output in a large `<pre>` block with no graphical SVG elements.
AI-generated descriptionA program that loads in some data using D3 utilities and uses React state to keep track of the data.
MIT Licensed