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
KKakeyaK
Last edited Jul 16, 2022
Created on Jul 16, 2022

This example displays a loading screen that reports the size, row count, and column count of a CSV dataset once it is fetched. The implementation uses React's `useState` hook within an `App` component, while the asynchronous data retrieval relies on D3’s `d3.csv` method, pulling from a remote gist containing CSS named colors. Upon completion, the `d3.csvFormat` API calculates the data’s byte size, and the result is rendered inside an HTML `<pre>` element.

AI-generated description

Smiley face implementation with React.

Comments

Sign in to join the discussion.

MIT Licensed