Skip to main content
100%

Datavis 2020 Episode 16 - Loading Data in React

✓ Published1🌍 Public
RRichard Burd
Last edited Jan 3, 2022
Created on Jan 3, 2022
Forked from Mouse Follower

This example demonstrates how to load external data in a React application using D3 utilities, displaying file size, row count, and column count asynchronously. The app uses React hooks (`useState`, `useEffect`) to manage loading state and fetch a CSV file of CSS named colors from a GitHub gist. Once loaded, the `d3.csv` function parses the data, and `d3.csvFormat` calculates the data size in kilobytes for display. The interface shows a large text message before and after loading, with React re-rendering the output once the data arrives.

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