Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Loading Data into React Program and D3

Public visualization

Loading Data into React Program and D3

0 stars1🌍 Public
DDavid
Last edited Mar 24, 2021
Created on Mar 21, 2021
Forked from Mouse Follower

This example demonstrates how to load external CSV data into a React application using D3 utilities. It fetches a dataset of CSS named colors via `d3.csv` and stores the parsed result in React state with `useState` and `useEffect`. The view displays a concise summary of the loaded data—its size in kilobytes, row count, and column count—using `d3.csvFormat` and a custom `message` module. The page includes React 16.13.1 and D3 v6.6.0 from CDNs, and renders a loading message until the asynchronous data request completes.

AI-generated description

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

Comments

Sign in to join the discussion.

MIT Licensed