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)

2c09cc9b43f94e49b25c77755b99c6f6

Loading and Parsing CSV Data

0 stars0🌍 Public
Aaissatheprogrammer
Last edited Nov 21, 2022
Created on Nov 21, 2022
Forked from HTML Starter

This example demonstrates how to load and parse CSV data from a remote URL. It displays the file size in kilobytes, the row count, and the column count of the dataset using D3 v5’s `d3.csv` method. The visualization also includes commented-out alternatives using `fetch` with `async`/`await` and `d3.csvParse`. The data comes from a GitHub Gist containing CSS named colors, and results appear as text in a large `<pre>` element.

AI-generated description