Skip to main content
100%

Fork of Loading Data with React & D3

✓ Published0🌍 Public
Ppalak124
Last edited Oct 13, 2023
Created on Oct 13, 2023

This example shows a React application that loads a CSV dataset of airline flights from a direct import and displays summary statistics about it. The app uses React hooks, specifically `useState` and `useEffect`, to manage the data as component state after the initial render. A message module uses `d3.csvFormat` to compute the data size in kilobytes, counts the number of rows, and counts the number of columns from the imported CSV. The resulting textual summary is rendered inside a `<pre>` element, with D3 v5 and React 16.9 loaded from CDNs.

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