🌍 Public
Fork of Loading Data with React & D3
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 descriptionA 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
Comments
Sign in to join the discussion.