Skip to main content
100%

Fork of Loading and Parsing CSV Data

✓ Published0🌍 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
MIT Licensed

Similar vizzes