Skip to main content
100%

Loading Data in React & D3!

✓ Published0🌍 Public
TTyler Durham
Last edited May 1, 2022
Created on May 1, 2022
Forked from Mouse Follower

This example demonstrates loading and summarizing a CSV file within a React application. The code uses D3’s `csv` utility to fetch CSS named color data from a GitHub gist, stores the result in React state via `useState` and `useEffect`, and renders a text summary of the dataset. The display reports the data’s size in kilobytes—calculated with `d3.csvFormat`—along with row and column counts. A brief “Loading…” message appears until the asynchronous fetch completes. The visualization itself is minimal, showing only the computed text information rather than a graphical chart.

AI-generated description

A program that loads in CSV data using D3 utilities, and uses React state to keep track of the data.

MIT Licensed

Similar vizzes