Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Loading Data with React & D3

Public visualization

Loading Data with React & D3

0 stars1🌍 Public
Nnicholasgonzalez1
Last edited Jun 22, 2021
Created on Jun 22, 2021

This example demonstrates how to load and display CSV data using React and D3. The app shows a simple text summary of the dataset, including file size, row count, and column count, or a "loading" message while the data is being fetched. It uses React’s `useState` and `useEffect` hooks to manage state and trigger the data request, and the `d3.csv` method from D3 v7 to load the remote CSV file. The data source is a GitHub gist containing CSS named colors.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed