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
Nnexus1058
Last edited May 15, 2021
Created on May 15, 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.

Comments

Sign in to join the discussion.

MIT Licensed