Skip to main content
100%

Loading Data with React & d3

✓ Published0🌍 Public
NNicholas Francis O'Brien
Last edited Oct 6, 2022
Created on Oct 6, 2022
Forked from Mouse Follower

This example displays a text summary of a loaded dataset, showing the file size in kilobytes, row count, and column count. It demonstrates how React state manages asynchronous data loading, using the `useState` and `useEffect` hooks to fetch and store the data. The code uses d3's `csv` function to parse a remote CSV file containing CSS named colors, and ReactDOM renders the resulting message. Before the data arrives, the interface shows a "data is loading..." message.

AI-generated description

A program that loads in some data using d3 utilities, and uses React state to keep track of the data.

MIT Licensed

Similar vizzes