Skip to main content
100%

Loading Data with React and D3

✓ Published1🌍 Public
Ddaneslutzky
Last edited Sep 10, 2021
Created on Sep 9, 2021
Forked from Mouse Follower

This example shows how to load and summarize data about CSS named colors using React and D3. The application fetches a CSV file from a GitHub gist with `d3.csv` inside a `useEffect` hook, storing the result in React state. While loading, it displays “Loading...”, then renders a text summary with the file size in kilobytes, row count, and column count. The code combines React hooks (`useState`, `useEffect`) with D3’s CSV parsing and formatting utilities to bridge data loading and component rendering.

AI-generated description

A program that loads data about CSS named colors using D3 utilities, then uses React state to keep track of that data.

MIT Licensed

Similar vizzes