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)

49fd4299416b468690b0062063a74ff1

Fork of Loading Data with React & D3

0 stars0🌍 Public
Nnexus1058
Last edited Jan 24, 2021
Created on Jan 24, 2021

This example demonstrates loading a remote CSV dataset of CSS named colors and displaying a summary of its contents. The visualization uses React state management with the `useState` and `useEffect` hooks to fetch data asynchronously via D3’s `csv` utility, then renders a plain text message showing the file size in kilobytes, row count, and column count. The code relies on React DOM for rendering and D3’s `csvFormat` to calculate data size, with the data sourced from a GitHub Gist.

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.