Skip to main content
100%

Loading Data with React and D3

✓ Published1🌍 Public
AAleksandra Timofejeva
Last edited Jul 2, 2021
Created on Jun 27, 2021
Forked from Mouse Follower

This example demonstrates how to load a CSV dataset in a React application using D3 utilities, displaying the data’s size, row count, and column count in a large text block. It uses the `useState` and `useEffect` hooks from React to manage the loaded data, and `d3.csv` to fetch the CSS named colors dataset from a GitHub gist. The file size is computed with `d3.csvFormat`, and the rendering is done through SVG.

AI-generated description

Loads data using D3 utilities and uses React state to keep track of the data

MIT Licensed

Similar vizzes