Skip to main content
100%

Loading and Parsing CSV Data

✓ Published0🌍 Public
JJing-MS
Last edited Mar 18, 2021
Created on Mar 18, 2021
Forked from HTML Starter

This example demonstrates loading and parsing CSV data using D3.js v6, displaying the dataset’s size in kilobytes, row count, and column count. It fetches a remote CSV file of CSS named colors via `d3.csv`, then converts it back to text with `d3.csvFormat` to measure its encoded length. The code also includes commented alternatives using the Fetch API, `async/await`, and `d3.csvParse`. The result appears in a large `<pre>` element styled with oversized font, showing only the summary statistics.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes