Skip to main content
100%

Loading data with React

✓ Published0🌍 Public
SSean Lin
Last edited Jun 20, 2021
Created on Jun 20, 2021
Forked from Mouse Follower

A React component loads a CSS named colors CSV and displays a text summary of the dataset. The code uses React’s useState and useEffect hooks, along with d3.csv, to fetch and store the data asynchronously, rendering a “loading” message while pending. The summary shows the file size in kilobytes, row count, and column count, calculated using d3.csvFormat and array properties. The visualization is plain text, rendered inside an HTML pre element.

AI-generated description

Loads in some data loads in some data using D3 utilities, and uses React state to keep track of the data.

MIT Licensed

Similar vizzes