Skip to main content
100%

Fork of Loading Data with React & D3

✓ Published0🌍 Public
PPatrick Byron Gattoc
Last edited Sep 29, 2021
Created on Sep 29, 2021

This example displays a summary of CSS named colors data, showing the file size in kilobytes, the number of rows, and the column count. It loads the CSV data from a GitHub Gist using the D3 `csv` utility and React state to manage the fetched data. The interface toggles between a "Loading..." message and the data summary, rendered within a React component using the `useEffect` hook. The code also uses the D3 `csvFormat` function to calculate the data's 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