Skip to main content
100%

Loading and Parsing CSV Data

✓ Published0🌍 Public
Cchamce
Last edited Jun 19, 2021
Created on Jun 19, 2021

This example demonstrates how to load and parse CSV data from a remote URL, displaying the file size in kilobytes, row count, and column count as text. The code uses `d3.csv` to fetch and parse the CSS Named Colors dataset, then `d3.csvFormat` to measure the formatted size. A commented alternative shows the same task using the Fetch API with `async`/`await` and `d3.csvParse`. The data is rendered into a large `<pre>` element using plain text manipulation.

AI-generated description
MIT Licensed

Similar vizzes