Skip to main content
100%

Load data

✓ Published0🌍 Public
TTanupat B.
Last edited Mar 18, 2022
Created on Mar 18, 2022
Forked from mouse_follower

This example shows a simple data-loading status report: a React component displays the number of rows, columns, and file size in kilobytes from a CSV dataset of CSS named colors. Initially, it renders a loading message, then replaces it with the computed summary once the data arrives. The code uses React hooks (`useState`, `useEffect`, `useCallback`) to manage the asynchronous fetch via `d3.csv`, and processes the result with `d3.csvFormat` to calculate the file size. The dataset is loaded from a GitHub gist URL.

AI-generated description

Smiley face implementation with React & D3, using a React component.

MIT Licensed

Similar vizzes