Skip to main content
100%

Fork of Loading and Parsing CSV Data

✓ Published0🌍 Public
GGordon Yang
Last edited Apr 1, 2021
Created on Apr 1, 2021

This example demonstrates how to load and parse CSV data from a remote URL, displaying the file size, row count, and column count of the CSS Named Colors dataset. The code uses D3 v5’s `d3.csv` method to fetch and parse the data asynchronously, then formats the summary using `d3.csvFormat` and `data.columns`. A commented-out alternative shows parsing via the Fetch API with `async`/`await` and `d3.csvParse`. The results are rendered as large text inside an HTML `<pre>` element.

AI-generated description
MIT Licensed

Similar vizzes