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
Bbillmccabeusa@hotmail.com
Last edited Nov 11, 2024
Created on Nov 11, 2024

This example displays a text summary of a CSS named colors dataset, showing its size in kilobytes, row count, and column count. It loads the data from a CSV file using the `csv` function from D3 v5, then uses React's `useState` and `useEffect` hooks to fetch and store the data asynchronously. The rendered output updates from a "Loading..." message to the computed statistics via the `message.js` helper, which formats the data dimensions using `d3.csvFormat` on the raw CSV content.

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