Skip to main content
100%

Fork of Loading Data with React & D3

✓ Published0🌍 Public
MMorshai
Last edited Sep 14, 2021
Created on Sep 14, 2021

This example loads a CSV dataset of CSS named colors and displays a plain-text summary of its contents. Using React’s `useState` and `useEffect` hooks, it fetches the data with `d3.csv`, then computes and renders the file size in kilobytes, the number of rows, and the number of columns via a custom `message` function that relies on `d3.csvFormat`. The interface shows “Loading…” until the asynchronous request resolves.

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