Skip to main content
100%

Loading data with React & D3

✓ Published1🌍 Public
PPeter Krevenets
Last edited Mar 7, 2021
Created on Mar 4, 2021
Forked from React Starter

This example demonstrates a minimal React application that loads a CSV file of CSS named colors using D3 utilities. It shows the downloaded data’s size, column count, and row count in a simple text display. The code uses React’s `useState` and `useEffect` hooks, with `d3.csv` to fetch the remote file and `d3.csvFormat` to measure its serialized size. The interface initially shows “Loading...” then updates once the async data fetch completes.

AI-generated description

Program that loads data about CSS colors using D3 utilities, and uses React state to keep track of the data.

MIT Licensed

Similar vizzes