Skip to main content
100%

Loading Data with React & D3

✓ Published2🌍 Public
GGokulkrishnan1996
Last edited Jul 8, 2022
Created on Jul 8, 2022
Forked from Mouse follower

This example demonstrates loading a CSV dataset into a React application using D3’s `csv` function, displaying file size, row count, and column count as text. The React component uses the `useState` and `useEffect` hooks to manage asynchronous data loading, showing “Loading…” until the promise resolves. The data comes from a remote gist containing CSS named colors. The `message` module formats the summary using `d3.csvFormat` to calculate size in kilobytes.

AI-generated description

program follows circle

MIT Licensed

Similar vizzes