Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Loading data with React & D3

Public visualization

Loading data with React & D3

0 stars1🌍 Public
RRuanzhenglin
Last edited Apr 14, 2021
Created on Apr 14, 2021
Forked from React callback

This example demonstrates how to load and display CSV data in a React application using D3. It fetches a dataset of CSS named colors from a GitHub gist via `d3.csv`, then displays summary statistics—file size in kilobytes, row count, and column count—as text in the browser. The React component uses the `useState` hook to manage the asynchronous data loading state, showing “loading” until the data arrives. The visualization itself is minimal, presenting the data’s metadata rather than a graphical chart.

AI-generated description

Half way towards a smiley face

Comments

Sign in to join the discussion.

MIT Licensed