Fork of Loading Data with React & D3
✓ Published0🌍 Public
This example demonstrates how to load and summarize a dataset of CSS named colors using React and D3. It fetches a CSV file from a GitHub gist via the `d3.csv` utility, stores the parsed data in React state with the `useState` and `useEffect` hooks, and renders a text summary that displays the file size in kilobytes, row count, and column count. The visualization uses React 16.9 and D3 v5, with the `d3.csvFormat` API calculating the data's byte length.
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