🌍 Public
Fork of Loading Data with React & D3
This example loads a CSV dataset of CSS named colors and displays a plain-text summary of its contents. Using React’s `useState` and `useEffect` hooks, it fetches the data with `d3.csv`, then computes and renders the file size in kilobytes, the number of rows, and the number of columns via a custom `message` function that relies on `d3.csvFormat`. The interface shows “Loading…” until the asynchronous request resolves.
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.