Skip to main content
100%

Loading and Parsing CSV Data

✓ Published0🌍 Public
Pparsonsdjp
Last edited Dec 25, 2022
Created on Dec 24, 2022
Forked from HTML Starter

This example demonstrates how to load and parse CSV data from a remote URL using the fetch API and D3.js. It displays the file size in kilobytes, the number of rows, and the number of columns parsed from the CSS named colors dataset. The code uses `fetchText` to retrieve the CSV as text, then `d3.csvParse` to convert it into a structured data object with accessible columns. The resulting summary appears in a large HTML `<pre>` element.

AI-generated description

Using fetch and such.

MIT Licensed

Similar vizzes