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)

3d5b55a5e37a486681ef04c8bf418767

Fork of Loading and Parsing CSV Data

0 stars1🌍 Public
Ffjvoris
Last edited Mar 5, 2023
Created on Mar 5, 2023

This example demonstrates how to load and parse CSV data, displaying file size, row count, and column count for the CSS Named Colors dataset. It uses d3.csv to fetch and parse the remote CSV file, then computes the formatted data size with d3.csvFormat. The interface is a simple HTML page with a large preformatted text area, updated dynamically via JavaScript promises. The code also includes commented alternatives using fetch with async/await and d3.csvParse, illustrating different approaches to asynchronous data loading in D3 v5.

AI-generated description