Skip to main content
100%

Loading and Parsing CSV Data

✓ Published0🌍 Public
MMoise
Last edited Aug 24, 2023
Created on Aug 24, 2023
Forked from HTML Starter

This example demonstrates how to load and parse a remote CSV file using D3 v7. It fetches CSS named colors data from a GitHub gist and displays the file size, row count, and column count in a large <pre> element. The code uses `d3.csv()` to retrieve and parse the data, then computes the formatted size with `d3.csvFormat()`, while also showing commented alternatives using `fetch()`, async/await, and `d3.csvParse()` for manual parsing.

AI-generated description

A program that loads and parses some CSV data.

MIT Licensed

Similar vizzes