Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Loading Data with React & D3

Public visualization

Viewing a saved revision (read-only)

1bb53ab20dd443919757f91f62274453

Fork of Loading Data with React & D3

0 stars0🌍 Public
Bblueyjuice
Last edited Nov 10, 2021
Created on Nov 10, 2021

This example shows the data loading lifecycle in a React and D3 application, displaying a text summary of a CSV dataset’s size, row count, and column count. It demonstrates asynchronous data fetching using D3’s `csv` utility, where the result is stored in React state via `useState` and `useEffect`. Once loaded, the `message` function formats the file size, row, and column details. The visualization uses ReactDOM to render the output, with D3 v5 and React 16.9.0, pulling data from a local CSV file about fat supply quantity.

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.