Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Loading and Parsing CSV Data

Public visualization

Fork of Loading and Parsing CSV Data

0 stars0🌍 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

Comments

Sign in to join the discussion.

MIT Licensed