Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Data with React and D3

Public visualization

Data with React and D3

0 stars2🌍 Public
Mmanasishrotri
Last edited Oct 6, 2020
Created on Oct 6, 2020
Forked from Mouse Follower

This example shows how to load and summarize COVID-19 case data from a CSV file using React and D3. The code fetches a May 2020 dataset from a GitHub gist via the `d3.csv` method, then displays basic metadata about the file, including its size in kilobytes, number of rows, and number of columns. The React app manages the loading state with the `useState` and `useEffect` hooks, rendering a loading message until the data arrives and then presenting the computed statistics. The visualization relies on `d3.csvFormat` to calculate the data size and ReactDOM to mount the component.

AI-generated description

A program to read data with react n D3. data: COVID Cases May2020.

Comments

Sign in to join the discussion.

MIT Licensed