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 stars1🌍 Public
Vvram80
Last edited Feb 28, 2021
Created on Feb 28, 2021

This example displays summary statistics about CSS named colors, loading the data from a CSV file hosted on GitHub. It shows the file size in kilobytes, the number of rows, and the number of columns as text in a large monospace font. The app uses React hooks (`useState`, `useEffect`) to manage asynchronous data loading, while D3’s `csv` function fetches and parses the dataset. A custom `message` function formats the statistics, and React renders the result or a “Loading…” placeholder.

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