Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Loading Data with React & D3

Public visualization

Fork of Loading Data with React & D3

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

This example demonstrates loading and summarizing a dataset of CSS named colors. The visualization displays a text summary showing the data’s size in kilobytes, row count, and column count, with a loading message before the data arrives. The app uses React’s `useState` and `useEffect` hooks to manage the asynchronous data loading, while D3’s `csv` function fetches and parses the remote CSV file. The `message` function formats the summary using `d3.csvFormat` to calculate file size.

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