Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Loading Data with React & D3

Public visualization

Viewing a saved revision (read-only)

6ca0e6157c894f0c97363d7f87806cf6

Loading Data with React & D3

0 stars0🌍 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.