Skip to main content
100%

Loading Data with React and D3

✓ Published1🌍 Public
Kkatebacon32
Last edited Mar 31, 2021
Created on Mar 29, 2021
Forked from Mouse Follower

This example demonstrates how to load CSV data with D3 and manage it with React state, displaying a text summary of the dataset instead of a visualization. The app fetches a CSV containing CSS named colors from a GitHub gist using d3.csv, stores the parsed result in React state via useEffect, and renders a message showing the data size, row count, and column count. D3 v6 and React 16.9 work together, with the message calculated using d3.csvFormat on the loaded data.

AI-generated description

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

MIT Licensed

Similar vizzes