Skip to main content
100%

Loading Data with React & D3

✓ Published1🌍 Public
JJoe Hutchins
Last edited Feb 19, 2022
Created on Feb 17, 2022
Forked from React Starter

This example demonstrates how to load and display basic statistics about CSS named colors using React and D3. The app fetches a CSV file from a GitHub gist via D3’s `csv` utility and stores the result in React state with `useState` and `useEffect`. Once loaded, it renders a text summary showing the file size in kilobytes, row count, and column count. The code also uses `d3.csvFormat` to compute the data size, with a simple "Loading..." fallback while the fetch is pending.

AI-generated description

A program that load in some data about CSS named colors using D3 utilities, and uses React state to keep track of the data

MIT Licensed

Similar vizzes