Skip to main content
100%

Fork of Loading Data with React & D3

✓ Published0🌍 Public
CChestnut Sea
Last edited Mar 22, 2023
Created on Mar 22, 2023

This example demonstrates the size and structure of a dataset containing CSS named colors, showing the file size in kilobytes, row count, and column count as plain text. The application loads the data from a CSV file using the `d3.csv` utility, then manages the asynchronous loading state with React hooks `useState` and `useEffect`. Once the data arrives, a custom message function formats the summary using `d3.csvFormat` to calculate the byte length. React renders the result in a `<pre>` element, displaying a loading message until the data is ready.

AI-generated description

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

MIT Licensed

Similar vizzes