Skip to main content
100%

Fork of Loading Data with React & D3

✓ Published1🌍 Public
Nnkarinti
Last edited Jun 29, 2023
Created on Jun 29, 2023

This example uses React state to manage data loading from a CSV file, displaying a simple text summary of the dataset. The `useEffect` hook triggers a `d3.csv` request to fetch the `cssNamedColors` dataset, and the resulting data object is stored in state. Once loaded, the text reports the file size in kilobytes, the number of columns, and the number of rows. The app initializes with a “Loading…” message and updates upon data arrival, all rendered as an SVG element.

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