Skip to main content
100%

Loading and parsing CSV data

✓ Published0🌍 Public
SShubham Pathak
Last edited Dec 16, 2021
Created on Nov 30, 2021
Forked from HTML Starter

This example displays the result of loading a remote CSV file, showing its size in kilobytes, row count, and column count. It uses the D3.js v7 library's `d3.csv` method to fetch and parse the data from a GitHub Gist URL, then formats the summary using `d3.csvFormat`. The output is presented in a large `<pre>` element styled with CSS. An alternative commented-out approach demonstrates fetching text with `fetch` and parsing it via `d3.csvParse`.

AI-generated description

A program that loads and parses CSV data.

MIT Licensed

Similar vizzes