🌍 Public
Viewing a saved revision (read-only)
ce3e17fdf99e4352b350b10f3f30d54e
Fork of 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 descriptionLoad CSV data.