Skip to main content
100%

Loading Data with React & D3

✓ Published0🌍 Public
JJanet Li
Last edited Jun 3, 2021
Created on Jun 3, 2021
Forked from Mouse Follower

This example demonstrates how to load and display CSV data in a React component using D3 utilities. It fetches a dataset of CSS named colors from a GitHub gist via `d3.csv`, stores the result in React state with the `useState` and `useEffect` hooks, and shows a summary of the data—file size in kilobytes, row count, and column count—rendered as text within a `<pre>` element. The SVG output is commented out, so the visualization focuses on the data-loading workflow.

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