Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Loading and Parsing CSV Data

Public visualization

Viewing a saved revision (read-only)

ce8a4bff5fd84b4bbda4f658879e7754

Fork of Loading and Parsing CSV Data

0 stars0🌍 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