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)

e1b7be40e2594a06acf33b8de7b186b3

Fork of Loading Data with React & D3

0 stars0🌍 Public
LLance Ellis
Last edited Aug 31, 2021
Created on Aug 31, 2021

This example demonstrates how React and D3 can work together to load and summarize a dataset of CSS named colors. It displays the dataset’s size in kilobytes, row count, and column count as plain text once the CSV file finishes loading. The visualization uses D3’s `csv` function to fetch the remote data and React’s `useState`, `useEffect`, and `useCallback` hooks to manage the asynchronous state and trigger the rendering update.

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.