Skip to main content
100%

Fork of Loading and Parsing CSV Data

✓ Published0🌍 Public
Hhung2606
Last edited Oct 10, 2021
Created on Oct 10, 2021

This example demonstrates how to load and parse CSV data using D3 v5. It fetches a dataset of CSS Named Colors from a GitHub gist and displays key statistics: the file size in kilobytes, the number of rows, and the number of columns. The code primarily uses `d3.csv()` with a Promise-based `.then()` callback, though commented-out alternatives show fetching text with `fetch()` and `async/await`, plus `d3.csvParse()` for manual parsing. The output renders as plain text inside a `<pre>` element.

AI-generated description
MIT Licensed

Similar vizzes