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
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

Comments

Sign in to join the discussion.

MIT Licensed