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
NNfuu
Last edited Mar 10, 2021
Created on Mar 10, 2021

This example demonstrates how to load and summarize a CSV dataset of CSS named colors using React hooks and D3 utilities. It fetches the data with `d3.csv`, stores it in React state via `useState` and `useEffect`, and renders a text summary with `d3.csvFormat`. The display shows the file size in kilobytes, row count, and column count, preceded by a loading message until the data arrives. The code uses React 16.9 and D3 v5, with styling provided through inline CSS.

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