🌍 Public
Viewing a saved revision (read-only)
9efaa76d660b44fa937f4c9c722d9fdb
Load Data w/ react and d3 Mouse Follower
This example displays the number of rows and columns in a CSV dataset as large text, initially showing “loading…” before updating once data arrives. It uses React’s `useState` hook to hold the parsed data and `d3.csv` for loading from a remote GitHub gist URL. The app also fetches the same URL with `fetch` and parses the text via `d3.csvParse` for logging. The `message` helper computes the row and column counts displayed in a `<pre>` element.
AI-generated descriptionloads data usinf D3 and uses react state to keep track of data