Skip to main content
100%

Loading and Parsing CSV Data

✓ Published0🌍 Public
JJanet Li
Last edited Jun 3, 2021
Created on Jun 3, 2021

This example demonstrates how to load and parse CSV data using D3 v5, displaying summary statistics about the dataset. A large text area shows the file size in kilobytes, the number of rows, and the number of columns from a CSV file containing CSS named colors. The code uses the `d3.csv` function with a Promise-based `.then()` method, and also includes commented-out alternatives using the Fetch API with `async` and `await`, as well as the `d3.csvParse` function for manual text parsing.

AI-generated description
MIT Licensed

Similar vizzes