Skip to main content
100%

Loading Data with React and D3

✓ Published0🌍 Public
SSong Tao Chen
Last edited Dec 28, 2021
Created on Dec 27, 2021
Forked from Mouse Follower

This example demonstrates how to load and summarize a CSV dataset using React state and D3 utilities. The app fetches CSS named colors from a GitHub gist via `d3.csv`, stores the parsed data in React’s `useState` hook, and displays a text summary. The `message` function computes file size in kilobytes using `d3.csvFormat`, along with row and column counts. While loading, the interface shows the word "loading" until the asynchronous `useEffect` hook completes the data request.

AI-generated description

a program taht loads in som data using d3 utilities and use react state to keep track of the data

2:58:35

MIT Licensed

Similar vizzes