Skip to main content
100%

Vizualizing Data with React & D3

✓ Published0🌍 Public
Nn.koldovsky@gmail.com
Last edited Jul 20, 2021
Created on Jul 20, 2021

This example demonstrates how React and D3 can work together to load and summarize a dataset of CSS named colors. It displays a text summary showing the data size in kilobytes, the number of rows, and the number of columns. The code uses React's `useState` and `useEffect` hooks to manage state and fetch the CSV file via D3's `csv` utility. Once loaded, the data is formatted with D3's `csvFormat` function to calculate the file size.

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