Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Loading data with react and d3

Public visualization

Loading data with react and d3

0 stars0🌍 Public
KKaitlyn Boyle
Last edited Dec 28, 2021
Created on Dec 28, 2021
Forked from Mouse Follower

This example demonstrates how to load and display a summary of a CSV dataset using React and D3. It fetches the CSS named colors dataset from a GitHub gist via D3’s `csv` utility, stores the result in React state with `useState` and `useEffect`, and renders a formatted message showing the file size in kilobytes, row count, and column count. The visualization shows the loading process in a plain text `<pre>` element, relying on React’s rendering and lifecycle management.

AI-generated description

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

Comments

Sign in to join the discussion.

MIT Licensed