Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Loading and Parsing CSV data

Public visualization

Viewing a saved revision (read-only)

13da115b4b024324bdf8296559fa67eb

Loading and Parsing CSV data

0 stars0🌍 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.