Skip to main content
100%

Fork of Loading Data with React & D3

✓ Published0🌍 Public
SSteven Pearce
Last edited Dec 15, 2021
Created on Dec 15, 2021

This example demonstrates the use of React state to manage asynchronous data loading, displaying file size, row count, and column count from a CSS named colors dataset. The visualization shows a text summary rather than a graphical chart, with a loading message rendered while data is pending. The code uses React hooks like `useState` and `useEffect` to fetch and store data, while the `d3.csv` function loads the CSV and `d3.csvFormat` calculates the byte size. The dataset is sourced from a GitHub gist containing named CSS color values.

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