Skip to main content
100%

Loading Data with React & D3

✓ Published0🌍 Public
SSushan Prajapati
Last edited May 24, 2021
Created on May 24, 2021
Forked from React Starter

This example demonstrates loading and summarizing a CSV dataset within a React application that integrates D3.js. The interface displays a simple text report showing the file size in kilobytes, the number of rows, and the number of columns. The code uses React's `useState` and `useEffect` hooks to trigger a one-time asynchronous fetch of the data via D3's `csv` function, which populates the state. The `message` module then formats the summary using D3's `csvFormat` method to calculate the byte length.

AI-generated description

Loading data with react and d3

MIT Licensed

Similar vizzes