Skip to main content
100%

Loading Data With React & d3

✓ Published2🌍 Public
Kkbrookshire420
Last edited May 6, 2022
Created on May 6, 2022
Forked from Mouse Follower

This example demonstrates a minimal React and d3 integration for loading external CSV data. The application fetches a color dataset from a GitHub Gist URL using `d3.csv`, then stores the parsed result in React state via `useState` and `useEffect`. While the data loads, the interface displays the text “Loading...”. Once complete, the `message` utility calculates and displays the dataset’s size in kilobytes, row count, and column count, using `d3.csvFormat` to compute file size.

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