Skip to main content
100%

Loading Data with React and D3

✓ Published0🌍 Public
YYashuVerma1210
Last edited Apr 5, 2021
Created on Apr 5, 2021
Forked from Mouse Follower

This example demonstrates loading CSV data in a React component with D3, displaying the dataset’s size in kilobytes, row count, and column count as text. The app uses React’s `useState` and `useEffect` hooks to fetch the data asynchronously via `d3.csv` from a GitHub gist. Once loaded, the `message` function formats the summary using `d3.csvFormat` to calculate byte length. The visualization renders plain SVG-less text inside a `<pre>` element, showing a loading state until the data arrives.

AI-generated description

Half smiley

MIT Licensed

Similar vizzes