Skip to main content
100%

Loading Data With React and D3

✓ Published1🌍 Public
AAhmad Butt
Last edited Mar 3, 2021
Created on Mar 3, 2021
Forked from Mouse Follower

This example demonstrates how to load and summarize a CSV dataset using React state and D3. It fetches a list of CSS named colors from a GitHub gist, then displays a text summary showing the file size in kilobytes, the number of rows, and the number of columns. The code uses React’s `useState` and `useEffect` hooks to manage the asynchronous data loading, with `d3.csv` handling the request and `d3.csvFormat` computing the data size. The visualization renders as plain SVG-less text via React DOM.

AI-generated description

Program the loads data using D3 and React state

MIT Licensed

Similar vizzes