Skip to main content
100%

Loading data with D3 and React

✓ Published1🌍 Public
JJames Yu
Last edited Oct 6, 2020
Created on Oct 6, 2020
Forked from Mouse Follower

This example demonstrates how to load and summarize a CSV dataset using D3 utilities within a React application. It shows a simple text display of the data’s size, row count, and column count, initially showing "Loading..." until the data arrives. The code uses React's `useState` and `useEffect` hooks to manage state and fetch the data asynchronously via `d3.csv`, while `d3.csvFormat` calculates the data's byte size. The data source is a gist with CSS named colors.

AI-generated description

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

MIT Licensed

Similar vizzes