Skip to main content
100%

Fork of Loading and Parsing CSV Data

✓ Published0🌍 Public
MMahesha999
Last edited Feb 6, 2022
Created on Feb 6, 2022

This example demonstrates how to load and parse CSV data using both the D3.js `d3.csv` method and the native Fetch API with `async`/`await`. It displays statistics about the dataset—file size in kilobytes, row count, and column count—in a large `<pre>` element. The data source is a CSV file containing CSS named colors, hosted as a GitHub gist. The code also includes commented-out alternatives using the older Promise-based `fetch` pattern.

AI-generated description
MIT Licensed

Similar vizzes