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)

992747b568804faa9ba0fad855889f4b

Loading and Parsing CSV Data

0 stars0🌍 Public
SSonja Ek
Last edited May 29, 2021
Created on May 29, 2021
Forked from HTML Starter

This example demonstrates how to load and parse CSV data using D3 v6. It fetches a remote CSV file containing CSS named colors and displays a summary of the dataset, including its size in kilobytes, row count, and column count. The visualization uses `d3.csv` to fetch and parse the data asynchronously, then computes the formatted CSV string length with `d3.csvFormat` and accesses the parsed data’s `length` and `columns` properties. The result is rendered as large text in a `<pre>` element, illustrating basic data loading and metadata extraction.

AI-generated description

Loading, parsing and summarizing CSV data.