Skip to main content
100%

Assignment 4: 66 DOD

✓ Published0🌍 Public
YYashashvi Singh
Last edited Mar 19, 2022
Created on Mar 19, 2022

This example loads a CSS-named-color dataset from a GitHub gist URL using D3’s `csv` utility, storing the result in React state via `useState` and `useEffect`. The app then displays a summary message using a custom `message` function, which reports the number of rows, columns, and the formatted file size in kilobytes using `d3.csvFormat`. Rendered as an SVG-backed React component, the visualization updates from a “Loading…” placeholder to the final data summary once the asynchronous fetch completes.

AI-generated description

A program that loads in some data using D3 utilities and uses React state to keep track of the data.

MIT Licensed

Similar vizzes