Skip to main content
100%

Loading and parsing CSV data

✓ Published0🌍 Public
Ggatperdut
Last edited Mar 19, 2021
Created on Mar 19, 2021
Forked from HTML Starter

This example demonstrates how to load and parse a remote CSV file using D3.js, then displays a summary of the dataset in a large text format. It fetches the data from a GitHub gist URL via the `d3.csv` method, which returns a promise. Once resolved, the code calculates the number of rows, columns, and the approximate file size in kilobytes using `d3.csvFormat`. The results are rendered into an HTML `<pre>` element, showcasing basic data inspection and asynchronous loading patterns in D3 v6.

AI-generated description

Loads and parses some CSV data.

MIT Licensed

Similar vizzes