Skip to main content
100%

Fork of Loading Data with React & D3

✓ Published0🌍 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.

MIT Licensed

Similar vizzes