Skip to main content
100%

Loading Data with React and D3

✓ Published1🌍 Public
Bbryce-walsh
Last edited Mar 10, 2021
Created on Mar 10, 2021
Forked from Mouse follow

This example demonstrates loading a CSV dataset with D3 and integrating it into a React component. The app uses React hooks (useState, useEffect) to fetch data via d3.csv from a GitHub-hosted file of CSS named colors, then displays a text summary that computes the dataset’s size in kilobytes, number of rows, and columns. While waiting for the data, the interface shows “Loading…”. The rendering relies on React DOM and D3’s csvFormat to calculate the data’s byte length.

AI-generated description

Read in data using D3 and track using React

MIT Licensed

Similar vizzes