🌍 Public
Viewing a saved revision (read-only)
ce8a4bff5fd84b4bbda4f658879e7754
Fork of Loading and Parsing CSV Data
This example demonstrates how to load and parse a CSV dataset containing CSS named colors. It reports the file size in kilobytes, the number of data rows, and the number of columns, displaying these statistics in a large text element. The code uses d3.csv to fetch and parse the CSV from a GitHub Gist, converting the parsed data back to CSV format with d3.csvFormat to calculate the byte size. Alternate commented-out approaches using the Fetch API, async/await, and d3.csvParse are also included.
AI-generated descriptionA program that loads and parses some CSV data: CSS Named Colors.
See also: