Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Loading Data with React & D3

Public visualization

Viewing a saved revision (read-only)

cc42a3f4787347d883996524f876b245

Fork of Loading Data with React & D3

0 stars0🌍 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.