Skip to main content
100%

Fork of Loading and Parsing CSV Data

✓ Published0🌍 Public
MM
Last edited Mar 5, 2024
Created on Mar 5, 2024

This example demonstrates how to load and parse CSV data using D3’s `d3.csv` method, displaying the file size, row count, and column count of a remote dataset. The visualization shows summary statistics in a large monospaced text block, computed by converting the parsed data back to CSV format with `d3.csvFormat` to measure its length. The code also includes commented-out alternatives using `fetch`, `async`/`await`, and `d3.csvParse`, illustrating different asynchronous approaches to the same task. The data source is a remote CSV file containing animal information.

AI-generated description
MIT Licensed

Similar vizzes