Skip to main content
100%

Loading Data with React & D3

✓ Published1🌍 Public
MMonish Vassantrai
Last edited Mar 12, 2021
Created on Mar 10, 2021
Forked from Mouse Follower

This example demonstrates how to load and display external CSV data using React state and D3 utilities. It fetches a dataset of CSS named colors from a GitHub gist, then calculates and displays the file size in kilobytes, the number of rows, and the number of columns as plain text. The code uses React’s useState and useEffect hooks to manage the async data loading, and d3.csv to parse the remote CSV file. While waiting for data, the interface shows a “Loading...” message.

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

MIT Licensed

Similar vizzes