Skip to main content
100%

Loading Data with React and D3

✓ Published0🌍 Public
DDrew Dudley
Last edited Jan 7, 2022
Created on Jan 7, 2022
Forked from Mouse Follower

This example demonstrates a React component that loads a CSV dataset of CSS named colors and displays a summary of its size and structure. The data loading process uses the `csv` method from d3.v7, while React’s `useState` and `useEffect` hooks manage the asynchronous fetch and update the component’s state. Once the data arrives, a custom message module computes the file size in kilobytes, row count, and column count, rendering the result in a large `<pre>` element.

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