Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Loading Data with React & D3

Public visualization

Fork of Loading Data with React & D3

0 stars0🌍 Public
Jjinglejiang
Last edited Aug 12, 2021
Created on Aug 12, 2021

This example displays a text summary of a CSS named colors dataset. It shows the file size in kilobytes, the row count, and the number of columns after loading a CSV file from a GitHub gist. The visualization uses React’s `useState` and `useEffect` hooks to fetch the data asynchronously via D3’s `csv` function, then formats the results with `d3.csvFormat`. The React component renders either a loading message or the computed statistics, demonstrating integration between D3’s data-loading utilities and React’s state management.

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.

Comments

Sign in to join the discussion.

MIT Licensed