Skip to main content
100%

loading data with

✓ Published1🌍 Public
Nnexus1058
Last edited Jan 29, 2021
Created on Jan 26, 2021
Forked from mouse follower

This example demonstrates a minimal data-loading workflow that fetches a CSV file of CSS named colors using `d3.csv` and manages the fetched data with React’s `useState` and `useEffect` hooks. The interface shows only a text summary of the dataset, reporting its approximate size in kilobytes, row count, and column count. The view renders as monospaced text in an SVG-capable React app, transitioning from a “Loading…” placeholder to the finalized statistics once the asynchronous request resolves. The code relies on the `d3.csvFormat` utility to calculate file size and React’s declarative rendering to update the display.

AI-generated description

a program that loads in same data about css named colors using d3 utilities and uses React state to keep track of the data

MIT Licensed

Similar vizzes