Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

loading data with

Public visualization

loading data with

0 stars1🌍 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

Comments

Sign in to join the discussion.

MIT Licensed