Skip to main content
100%

Loading and Parsing CSV Data

✓ Published0🌍 Public
MMichael
Last edited Dec 30, 2021
Created on Dec 30, 2021
Forked from HTML Starter

This example demonstrates the loading and parsing of a remote CSV file containing CSS named colors, displaying summary statistics such as file size, row count, and column count. The code uses D3 v7’s `d3.csv` method with a Promise-based `.then()` callback to fetch the data from a GitHub Gist URL, while commented alternatives show `fetch` with `async`/`await` and `d3.csvParse`. Results are rendered as text inside a large `<pre>` element, illustrating basic data ingestion workflows.

AI-generated description

Loading CSV data from url using async and await

ref: https://youtu.be/2LhoCfjm8R4

MIT Licensed

Similar vizzes