Skip to main content
100%

Loading Data with React & D3

✓ Published1🌍 Public
AAD-W99
Last edited Sep 20, 2022
Created on Sep 18, 2022
Forked from Mouse Follower

This example demonstrates how to load and display external data in a React component using D3 utilities. It fetches a CSV file containing CSS named colors from a GitHub gist, then shows a brief summary message about the loaded data—including its size in kilobytes, row count, and column count. The React `useState` and `useEffect` hooks manage the data-loading lifecycle, while `d3.csv` and `d3.csvFormat` handle parsing and formatting the data, with the final result rendered as SVG.

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