Skip to main content
100%

Loading and Parsing CSV data

✓ Published0🌍 Public
Ddleoenri
Last edited Apr 19, 2022
Created on Apr 19, 2022
Forked from HTML Starter

This example demonstrates loading and parsing a CSV file from a remote URL, displaying the file size in kilobytes, the number of data rows, and the number of columns in a large text preformatted element. It uses D3 v7's `d3.csv` method to fetch and parse the data asynchronously, then calculates the formatted output length using `d3.csvFormat`. The data source is a GitHub gist containing mobile download statistics. The example also includes commented-out alternatives using `fetch`, `async`/`await`, and `d3.csvParse` for comparison.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes