Fork of Mouse Follower
✓ Published0🌍 Public
This example displays a minimal text summary of a COVID-19 deaths dataset. The React component fetches a CSV file from the Johns Hopkins CSSEGISandData repository and uses D3’s `csv` function to parse it. The resulting `data` object is passed to a custom `message` function, which computes and renders the file size in kilobytes, row count, and column count. The output updates dynamically through React’s `useState` and `useEffect` hooks, initially showing a “loading…” placeholder. D3’s `csvFormat` is used to measure the file size.
AI-generated descriptionA program that loads data with the use of D3 and React.
MIT Licensed