Skip to main content
100%

Fork of Loading Data with React & D3

✓ Published0🌍 Public
TThfc1991
Last edited Jan 10, 2022
Created on Jan 10, 2022

This example demonstrates the loading and summarization of a CSS named colors dataset. The visualization displays a plain text summary of the data, showing its size in kilobytes, the number of rows, and the number of columns. The process uses React state management, with the `useState` and `useEffect` hooks to asynchronously fetch the CSV file using the `d3.csv` utility. Once loaded, the data is passed to a message function that calculates the file size using `d3.csvFormat`, and the result is rendered inside a `<pre>` element.

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