Skip to main content
100%

Fork of Loading and Parsing CSV Data

✓ Published0🌍 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
MIT Licensed

Similar vizzes