Skip to main content
100%

Fork of Load CSV data

✓ Published0🌍 Public
IIlia Katkovnik
Last edited Mar 13, 2021
Created on Mar 13, 2021
Forked from Load CSV data

This example demonstrates how to load and parse a remote CSV file, displaying basic dataset statistics in the browser. It reports the file size in kilobytes, the number of rows, and the number of columns in a centered `<pre>` element. The code uses the Fetch API to retrieve the CSV from a GitHub gist, then calls `d3.csvParse` to convert the raw text into a data array. The resulting metrics are written to the page via `textContent`, with `data.columns.length` revealing the column count.

AI-generated description

Load CSV data.

MIT Licensed

Similar vizzes