Skip to main content
100%

Loading data with React & D3

✓ Published1🌍 Public
Jjbruzzo
Last edited Jun 29, 2022
Created on Jun 29, 2022
Forked from Mouse Follower

This example demonstrates how to load and display CSV data using React state management alongside D3 utilities. The application fetches a CSV file containing CSS named colors from a GitHub gist, then calculates and presents summary statistics including file size, row count, and column count. The code uses React’s `useState` and `useEffect` hooks to manage the asynchronous data loading via `d3.csv`, while the `d3.csvFormat` method in `message.js` computes the data’s size in kilobytes. The rendered output appears as large monospace text.

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