Skip to main content
100%

Loading and Parsing CSV Data

✓ Published702🌍 Public
CCurran Kelleher
Last edited Jan 3, 2024
Created on Aug 29, 2019
Forked from HTML Starter

This example demonstrates how to load and parse CSV data by fetching a dataset of CSS named colors and displaying its size, row count, and column count as large text. The code uses `d3.csv` to fetch and parse the remote CSV file, then reports the file size in kilobytes, the number of data rows, and the number of columns. It also includes commented-out alternatives using `fetch` and `async/await` with `d3.csvParse`. The dataset originates from a GitHub gist containing CSS color names with their RGB values.

AI-generated description
MIT Licensed

Similar vizzes