Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Loading and Parsing CSV Data

Public visualization

Viewing a saved revision (read-only)

cda925c14b3c432e870593c42543074e

Fork of Loading and Parsing CSV Data

0 stars0🌍 Public
NNigel
Last edited Aug 30, 2022
Created on Aug 30, 2022

This example demonstrates how to load and parse CSV data in a web page, displaying the file size, row count, and column count of the CSS Named Colors dataset. It uses d3.v5's `d3.csv` method to fetch and parse the data from a remote URL, then applies `d3.csvFormat` and array properties to summarize the contents. The interface is minimal, showing the statistics in a large `<pre>` element styled with CSS. The code also includes commented-out alternatives using `fetch`, `async`/`await`, and `d3.csvParse` for comparison.

AI-generated description