Skip to main content
100%

Fork of Loading and Parsing CSV Data

✓ Published0🌍 Public
TTina Haiser
Last edited Apr 7, 2021
Created on Apr 7, 2021

This example displays a plain-text summary of a CSV dataset loaded from a GitHub gist, showing its size in kilobytes, row count, and column count. It demonstrates both the primary approach using `d3.csv` with a Promise, and commented-out alternatives using `fetch` with async/await plus `d3.csvParse`. The React state mentioned in the README is not visible in this code, which instead directly updates the DOM via `textContent`. The large `pre` element presents the concise statistics.

AI-generated description

A program that uses some data using D3 utility and uses React state to keep track of that data

MIT Licensed

Similar vizzes