Skip to main content
100%

Loading and Parsign CSV data

✓ Published0🌍 Public
AAlicia Larsen
Last edited Nov 25, 2023
Created on Nov 24, 2023
Forked from Hello HTML

This example demonstrates how to load and parse CSV data in D3 v5, displaying the file size, row count, and column count of a remote dataset. It uses `d3.csv` to fetch and parse the data asynchronously, then calculates the formatted output with `d3.csvFormat` to measure its kilobyte size. A commented-out alternative shows the same process using the Fetch API with `d3.csvParse`. The results are rendered as text inside a `<pre>` element.

AI-generated description

A bare minimum HTML page.

MIT Licensed

Similar vizzes