Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Loading and Parsing CSV Data

Public visualization

Viewing a saved revision (read-only)

36d22b94631a457687f9e0c3f1adba8a

Fork of Loading and Parsing CSV Data

0 stars0🌍 Public
PPratik Raja
Last edited Jul 29, 2024
Created on Jul 29, 2024

This example shows summary statistics from a remote CSV file containing CSS named colors, displaying the file size, row count, and column count as large text. It uses D3 v5’s `d3.csv` to fetch and parse the data, then formats the output with `d3.csvFormat`. A commented alternative demonstrates the same task using the Fetch API with `async` and `await`, followed by `d3.csvParse`, and a nested-promise “pyramid of doom” pattern is also included for comparison. The data originates from a GitHub Gist URL.

AI-generated description