Skip to main content
100%

dv.16 - d3 & react: loading data

✓ Published2🌍 Public
Zzach b.
Last edited Mar 18, 2021
Created on Sep 29, 2020

This example demonstrates how to combine React and D3 for asynchronous data loading. The app fetches a CSV file containing CSS named colors from a GitHub gist, then displays a summary of the loaded data—its size in kilobytes, row count, and column count—in large text. The React `useState` and `useEffect` hooks manage the loading state, while the D3 `csv` function handles the network request and parsing. D3’s `csvFormat` calculates the data size for the message.

AI-generated description

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

--
Datavis 2020 #16

MIT Licensed

Similar vizzes