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)

299e8cc976314ffba6fa830c366260df

Fork of Loading and Parsing CSV Data

0 stars0🌍 Public
DDeaxNG
Last edited Nov 19, 2021
Created on Nov 19, 2021

This example demonstrates how to load and parse CSV data, reporting the file size, row count, and column count of the CSS Named Colors dataset. It uses D3 v5's `d3.csv` method to fetch the remote CSV file, then applies `d3.csvFormat` to calculate the data size in kilobytes. A commented-out alternative shows the same workflow using the Fetch API with async/await and `d3.csvParse`, highlighting different approaches to asynchronous data loading in a React-less HTML page.

AI-generated description