Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Loading Data With React and D3

Public visualization

Viewing a saved revision (read-only)

ced1e5b73a8a49f88e423b367dc92024

Loading Data With React and D3

0 stars1🌍 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