Skip to main content
100%

Fork of Loading Data with React & D3

✓ Published0🌍 Public
YYedrup
Last edited Jan 27, 2021
Created on Jan 27, 2021

This example demonstrates how React state management can integrate with D3 data loading. The visualization shows a loading screen with a text summary of the CSS named colors dataset displayed in a large monospace font. The code uses React's `useState`, `useEffect`, and `useCallback` hooks alongside D3's `csv` function to fetch and parse the data from a GitHub gist URL. Once loaded, the `message` function formats the dataset size, row count, and column count for display, highlighting the interaction between React's component lifecycle and D3's data utilities.

AI-generated description

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

MIT Licensed

Similar vizzes