Skip to main content
100%

Loading Data with React & D3

✓ Published0🌍 Public
RRoma
Last edited Oct 21, 2021
Created on Oct 21, 2021
Forked from Mouse event

This example demonstrates how to load and summarize a CSV dataset using React and D3. It fetches a list of CSS named colors from a GitHub gist and uses React’s `useState` and `useEffect` hooks to manage the asynchronous data loading. The `d3.csv` method parses the remote file, and the resulting data is passed to a custom `message` function that calculates and displays the total row count, column count, and file size in kilobytes. The interface renders this summary as plain text inside a `<pre>` element, initially showing a “loading” state until the data arrives.

AI-generated description

A program that loads data with react & d3

MIT Licensed

Similar vizzes