Skip to main content
100%

Loading Data with React & D3

✓ Published1🌍 Public
MMarcus
Last edited May 22, 2022
Created on May 22, 2022
Forked from Mouse Follower

This example demonstrates a React component that loads a CSV file of CSS named colors using D3’s `csv` utility, stores the result in React state via `useState` and `useEffect`, and displays a short summary of the dataset. The summary shows the file size in kilobytes, the row count, and the column count, using `d3.csvFormat` and `message.js` to compute the values. While the data is loading, the interface shows “Loading…” instead of the statistics. The code combines React 16.9, D3 v7, and a remote gist URL as the data source.

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