Skip to main content
100%

Loading Data with React & D3

✓ Published0🌍 Public
TtheV1rTual
Last edited Oct 28, 2021
Created on Oct 28, 2021
Forked from HTML Starter

This example displays a dataset summary in large text, showing the number of rows, columns, and file size of a CSS named colors CSV loaded from a GitHub gist. The React component uses `useState` and `useEffect` to fetch the data with `d3.csv`, then passes it to a `Message` function that computes statistics using `d3.csvFormat`. The app renders the summary inside a `<pre>` element, with a loading message displayed until the data arrives.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes