Skip to main content
100%

Loading and Parsing CSV Data

✓ Published0🌍 Public
BBen Seebeck
Last edited Nov 4, 2021
Created on Nov 3, 2021
Forked from Hello HTML

This example demonstrates how to load and parse CSV data in D3.js, displaying a summary of the resulting dataset. It fetches a CSV file containing CSS named colors from a GitHub gist using `d3.csv`, then formats the parsed data with `d3.csvFormat` to calculate its size in kilobytes. The visualization presents three key metrics as plain text: the data size, row count, and column count, all rendered in a large `<pre>` element. The code also includes commented alternatives using the Fetch API with `d3.csvParse` to show different parsing approaches.

AI-generated description

A program that loads and parses some CSV data.

MIT Licensed

Similar vizzes