Skip to main content
100%

Fork of Loading and Parsing CSV Data

✓ Published0🌍 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
MIT Licensed

Similar vizzes