Skip to main content
100%

Loading and Parsing CSV Data

✓ Published0🌍 Public
TTaweewat Somboonpanyakul
Last edited May 24, 2021
Created on May 24, 2021
Forked from HTML Starter

This example demonstrates loading and parsing CSV data with D3.js v6, displaying file size, row count, and column count in a preformatted text block. It fetches a remote CSV file containing CSS named colors from a GitHub gist using `d3.csv`, which returns a promise, then formats the data with `d3.csvFormat` to calculate its kilobyte size. The code also includes commented alternatives using `fetch`, `async/await`, and `d3.csvParse` for manual text-based parsing. The visualization is minimal, focusing on data ingestion metrics rather than graphical output.

AI-generated description

A program to load CSV data

MIT Licensed

Similar vizzes