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
GGuilherme Zago
Last edited Jun 18, 2021
Created on Jun 18, 2021

This example demonstrates a minimal data-loading and reporting interface. It displays a text summary of a remote CSV file, showing the file size in kilobytes, the row count, and the column count. The application fetches the data using D3's `csv` function and manages the asynchronous state with React's `useState` and `useEffect` hooks. Once loaded, the `message` function calculates and formats these statistics for display within a large, styled `<pre>` element.

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