Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Loading and Parsing CSV Data with D3

Public visualization

Viewing a saved revision (read-only)

8ea26061c1ec49e7bb231eaa74c13617

Loading and Parsing CSV Data with D3

0 stars0🌍 Public
AA
Last edited Jul 13, 2021
Created on Jul 13, 2021
Forked from HTML Starter

This example demonstrates loading a remote CSV file and displaying basic dataset statistics. It fetches CSS named colors from a GitHub gist and shows the file size in kilobytes, the total number of rows, and the column count. The visualization uses D3 v7’s `d3.csv` method to parse the data asynchronously, then `d3.csvFormat` to calculate the raw text length, with results rendered to a `<pre>` element. The code also includes commented alternatives using `fetch` and `d3.csvParse`.

AI-generated description

Loading and Parsing CSV Data with D3