Skip to main content
100%

Fork of Loading Data with React & D3 (6.5.0)

✓ Published0🌍 Public
Pperformautodev
Last edited Feb 28, 2021
Created on Feb 28, 2021

This example demonstrates how to load and summarize CSS named colors data using React state and D3 utilities. The code fetches a CSV file from a gist via `d3.csv`, stores the parsed result in React’s `useState`, and updates the display after loading completes. It uses `useEffect` to trigger the async fetch, then renders a text message via the `message` function, which formats file size in kilobytes, row count, and column count using `d3.csvFormat`. The visualization shows plain text statistics rather than a graphical chart.

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