Skip to main content
100%

Loading and Parsing CSV Data

✓ Published0🌍 Public
CChristian-SWS
Last edited Aug 23, 2023
Created on Aug 22, 2023
Forked from HTML Starter

This example demonstrates loading and parsing CSV data from a remote URL using D3.js, displaying the resulting table's row count, column count, and file size in kilobytes. The page calls `d3.csv` to fetch and parse the data asynchronously, then uses `data.columns.length` and `d3.csvFormat` to calculate the metrics, rendering the output inside a large `<pre>` element. The included commented code shows alternative approaches using `fetch`, `async`/`await`, and `d3.csvParse`.

AI-generated description

Load and parse csv data

MIT Licensed

Similar vizzes