Skip to main content
100%

Fork of Loading Data with React & D3

✓ Published0🌍 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.

MIT Licensed

Similar vizzes