Skip to main content
100%

Loading and parsinc CSV data

✓ Published1🌍 Public
Lltostes
Last edited Apr 25, 2021
Created on Apr 25, 2021
Forked from HTML Starter

This example demonstrates loading and parsing CSV data using D3.js, displaying the file size in kilobytes, row count, and column count of a dataset of CSS named colors fetched from a GitHub Gist. The code uses `d3.csv` to asynchronously retrieve and parse the remote CSV, then computes the formatted size with `d3.csvFormat` before rendering the summary into an HTML `<pre>` element. Alternatives using the Fetch API with `d3.csvParse` are also included as comments.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes