Skip to main content
100%

Fork of Loading and Parsing CSV Data

✓ Published0🌍 Public
Tthevannguyen
Last edited Oct 23, 2023
Created on Oct 23, 2023

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 description
MIT Licensed

Similar vizzes