Skip to main content
100%

Loading and parsing CSV data

✓ Published0🌍 Public
Ee-ines
Last edited Apr 1, 2021
Created on Apr 1, 2021
Forked from HTML Starter

This example demonstrates how to load and parse a remote CSV file using D3.js. It renders a summary of the parsed dataset as large text, showing the file size in kilobytes, the number of rows, and the number of columns. The code uses `d3.csv()` with a promise to fetch the CSS named colors dataset from a GitHub gist, then applies `d3.csvFormat()` to measure the data size and accesses `data.length` and `data.columns` for the row and column counts. The result is displayed in a `<pre>` element via `document.getElementById()`.

AI-generated description

A program that loads and parses some CSV data.

MIT Licensed

Similar vizzes