🌍 Public
Fork of Loading Data with React & D3
This example displays summary statistics for a dataset of CSS named colors, showing the file size in kilobytes, row count, and column count as large text. It loads the data from a GitHub gist using `d3.csv`, stores it in React state with the `useState` and `useEffect` hooks, and renders the result via ReactDOM. The implementation combines D3's `csvFormat` utility for calculating data size with React's component lifecycle for managing asynchronous data loading.
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.