Skip to main content
100%

Loading Data with React & D3

✓ Published0🌍 Public
AArookie-2020
Last edited Jul 17, 2021
Created on Jul 17, 2021
Forked from Mouse Follower

This example demonstrates how to load CSV data with D3 and manage it through React state. The app displays a summary message showing the dataset’s size in kilobytes, row count, and column count. It uses `d3.csv` to fetch CSS named colors from a GitHub gist, with `useState` and `useEffect` handling data loading and state updates. The rendering is plain SVG-free text via a `<pre>` element, and the formatting relies on `d3.csvFormat` to calculate the file size.

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