Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Loading and Parsing CSV Data

Public visualization

Viewing a saved revision (read-only)

1f6dfde4ef40460fa5d1704a2073c2d7

Loading and Parsing CSV Data

0 stars0🌍 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