Skip to main content
100%

Fork of loading and parsing csv data using react

✓ Published0🌍 Public
HHamza Abdirashid
Last edited Jul 2, 2021
Created on Jul 2, 2021

This example demonstrates how to load and parse CSV data in a React component using D3’s `text` and `csvParse` functions. After fetching the file from a GitHub gist, it displays the file size in kilobytes alongside the total row and column counts of the parsed dataset. The code uses React hooks (`useState`, `useEffect`) with promises, showing a "Loading..." message until the asynchronous request completes.

AI-generated description

This is going to demonstrate how to parse csv data with async/await and promises

MIT Licensed

Similar vizzes