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
Ffouzanuddin
Last edited Feb 25, 2022
Created on Feb 25, 2022

This example demonstrates how to load and summarize a CSV dataset of CSS named colors using React and D3. It displays a brief text summary showing the file size in kilobytes, row count, and column count. The code uses React’s `useState` and `useEffect` hooks to manage asynchronous data loading, with `d3.csv` fetching the remote dataset. React renders the message from the `message.js` utility, which formats the summary using `d3.csvFormat` to calculate data size.

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