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)

bc223cfe829a43cf85218481d64deed0

Fork of Loading and Parsing CSV Data

0 stars0🌍 Public
Ssimrangajsinghani
Last edited Jun 21, 2023
Created on Jun 21, 2023

This example demonstrates how to load and parse CSV data from a remote URL, displaying the file size, row count, and column count as text. It uses `d3.csv` to fetch and parse the CSS Named Colors dataset, then formats the results with `d3.csvFormat` and `Math.round`. The code also includes commented-out alternatives using `fetch`, `async`, and `await`, plus a nested promise example, but the active path relies on `d3.csv` and its `then` method to render the summary into an HTML `<pre>` element.

AI-generated description