Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Fork of Loading Data with React & D3

Public visualization

Fork of Fork of Loading Data with React & D3

0 stars0🌍 Public
Ssd2beatles
Last edited Jun 18, 2021
Created on Jun 18, 2021

This example demonstrates how to load and summarize a CSV dataset of CSS named colors using React’s `useState` and `useEffect` hooks alongside D3’s `csv` utility. While the data loads, the interface displays “Loading…” text; once fetched, it renders a plain-text summary in a large `<pre>` element, showing the file size in kilobytes, row count, and column count. The message is computed using `d3.csvFormat` and custom string concatenation, with React handling the asynchronous state update.

AI-generated description

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

Comments

Sign in to join the discussion.

MIT Licensed