Skip to main content
100%

CSV Data Pt 2 - Summarizing

✓ Published1🌍 Public
Jjulesgentry
Last edited Jul 29, 2022
Created on Jul 29, 2022

This example summarizes a remote CSV file of CSS color names by displaying its size, row count, and column count as large text. It loads the data with `d3.csv`, then uses `d3.csvFormat` to measure the formatted string’s length in kilobytes, and reports `data.length` and `data.columns.length`. The code also includes commented alternatives using `fetch`, `async`/`await`, and `d3.csvParse`. The output appears in a `<pre>` element, emphasizing raw text over graphical representation.

AI-generated description

A program that loads and parses CSV data

MIT Licensed

Similar vizzes