Loading Data with React & d3
✓ Published0🌍 Public
This example shows a React app that loads a CSV dataset from a GitHub gist using d3.csv, stores the result in React state via the useState and useEffect hooks, and displays a short summary of the dataset as plain text. The message function from a local module formats the data by reporting its size in kilobytes with d3.csvFormat, the row count, and the number of columns. While loading, the app displays the word “Loading...”, and the final output updates once the asynchronous data request resolves. The example uses d3 v5 and React 16.9.
AI-generated descriptionA program that loads in some data using D3 utilities, and uses React state to keep track of data.
MIT Licensed