Skip to main content
100%

Loading and Parsing CSV Data

✓ Published0🌍 Public
JJi Won Yeom
Last edited Jan 23, 2022
Created on Jan 23, 2022

This example demonstrates loading and parsing CSV data by fetching the CSS Named Colors dataset from a GitHub gist and displaying summary statistics about it. The visualization shows the file size in kilobytes, the number of rows, and the number of columns in a large text display. It uses d3.csv to load the remote CSV file asynchronously, then d3.csvFormat to measure the data size. The code also includes commented alternatives using the Fetch API with async/await and d3.csvParse, illustrating different approaches to handling the same data-loading workflow.

AI-generated description
MIT Licensed

Similar vizzes