Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Loading and Parsing CSV Data

Public visualization

Viewing a saved revision (read-only)

9ae026f05fd14d82942baefc347822c9

Fork of Loading and Parsing CSV Data

0 stars0🌍 Public
FFlorian Kotthoff
Last edited Aug 30, 2021
Created on Aug 30, 2021

This example demonstrates loading and parsing a CSV file of CSS named colors, displaying a summary of the dataset’s size in kilobytes, row count, and column count within a large HTML `<pre>` element. It fetches the remote CSV using d3.csv, which parses the data and returns a promise, then uses `d3.csvFormat` to measure the formatted length and access the parsed dataset’s columns. The visualization relies on D3 v5 and JavaScript’s promise handling to update the page text content.

AI-generated description