🌍 Public
Fork of Loading Data with React & D3
This example displays a text summary of a CSS named colors dataset, showing its size in kilobytes, row count, and column count. It loads the data from a CSV file using the `csv` function from D3 v5, then uses React's `useState` and `useEffect` hooks to fetch and store the data asynchronously. The rendered output updates from a "Loading..." message to the computed statistics via the `message.js` helper, which formats the data dimensions using `d3.csvFormat` on the raw CSV content.
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.