Skip to main content
100%

Loading and parsing CSV data - with fetch

✓ Published1🌍 Public
PPeter Krevenets
Last edited Mar 4, 2021
Created on Mar 3, 2021
Forked from HTML Starter

This example demonstrates how to load and parse a remote CSV file using the built-in `fetch` API. It displays the file size in kilobytes, the number of columns, and the number of rows in the parsed dataset. The code uses D3 v6’s `csvParse` method to convert the fetched text into a tabular data structure. The CSV data is retrieved from a GitHub Gist containing CSS named colors, and the results are rendered as plain text in a large `<pre>` element.

AI-generated description

Loading and parsing some CSV data with fetch built-in function.

MIT Licensed

Similar vizzes