🌍 Public
Fork of Loading Data with React & D3
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 descriptionA 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
Comments
Sign in to join the discussion.