🌍 Public
Fork of Loading Data with React & D3
This example demonstrates loading a remote CSV dataset of CSS named colors and displaying a summary of its contents. The visualization uses React state management with the `useState` and `useEffect` hooks to fetch data asynchronously via D3’s `csv` utility, then renders a plain text message showing the file size in kilobytes, row count, and column count. The code relies on React DOM for rendering and D3’s `csvFormat` to calculate data size, with the data sourced from a GitHub Gist.
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.