Skip to main content
100%

Loading and Parsing CSV data

✓ Published0🌍 Public
RRoma
Last edited Oct 20, 2021
Created on Oct 18, 2021
Forked from Hello HTML

This example demonstrates how to load and parse CSV data using D3 v7, displaying dataset statistics including row count, column count, and file size in kilobytes. The code uses `d3.csv()` to fetch and parse the remote CSV file from a GitHub gist containing CSS named colors, then computes the metrics using `data.length`, `data.columns`, and `d3.csvFormat()`. The results appear in a large monospace `<pre>` element. A commented-out alternative shows the same workflow using the Fetch API with `async/await` and `d3.csvParse()`.

AI-generated description

A bare minimum HTML page.

MIT Licensed

Similar vizzes