Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Loading data with react and d3

Public visualization

Loading data with react and d3

0 stars0🌍 Public
CChase Hall
Last edited Jun 29, 2022
Created on Jun 29, 2022
Forked from mouse follower

This example demonstrates how to load and summarize a CSV dataset within a React application using D3.js. It displays a text message showing the data’s size in kilobytes, row count, and column count after fetching CSS named colors from a GitHub gist. The code uses React’s `useEffect` and `useState` hooks alongside `d3.csv` to asynchronously retrieve the data, and `d3.csvFormat` to calculate its length. The interface shows "Loading..." until the data arrives, then renders the summary.

AI-generated description

Smiley face implementation with React.

Comments

Sign in to join the discussion.

MIT Licensed