🌍 Public
Viewing a saved revision (read-only)
5de5d2ed001843dba975d85b7166ded4
CSV Data Pt 2 - Summarizing
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 descriptionA program that loads and parses CSV data