Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Parse and process CSV data

Public visualization

Viewing a saved revision (read-only)

56836d85d3fc4c789c58e86e89f1b67a

Parse and process CSV data

0 stars0🌍 Public
MMaciek Sitkowski
Last edited Sep 23, 2020
Created on Sep 22, 2020
Forked from HTML Starter

This example demonstrates how to parse and process CSV data, displaying the file size, row count, and column count of a remote CSS-named-colors dataset. A large <pre> element shows these three metrics. The primary approach uses the D3 v6 `csv` method to fetch and parse the data, then `csvFormat` and `data.length` to compute metrics, while a commented alternative shows an equivalent implementation with `fetch`, `csvParse`, and async/await.

AI-generated description