Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Loading data with React & D3

Public visualization

Viewing a saved revision (read-only)

9dee2966eecf4b5c96a17c710da334d4

Loading data with React & D3

0 stars1🌍 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.