Skip to main content
100%

Loading data with React and d3

✓ Published0🌍 Public
Aadante111
Last edited Sep 8, 2023
Created on Sep 8, 2023

A React application loads a color-name dataset from a GitHub gist using `d3.csv`, then displays summary statistics about the dataset in a `<pre>` element as plain text. The component uses React’s `useState` and `useEffect` hooks to manage the asynchronous data-fetching lifecycle, showing "Loading..." until the data arrives. The code includes reusable SVG face components built with `d3.arc` and `d3.line`, though the main view focuses on reporting the file size in kilobytes, row count, and column count. The rendering uses React’s virtual DOM with SVG elements.

AI-generated description

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

MIT Licensed

Similar vizzes