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)

54f1da1b67e54b5cafdbf7c48ef75b7d

Loading and Parsing CSV Data

0 stars0🌍 Public
AAdhityaa A
Last edited Sep 15, 2023
Created on Sep 15, 2023
Forked from Hello HTML

This example demonstrates how to load and parse CSV data using D3 v5. It fetches a remote CSV file containing named CSS colors and displays three summary statistics: the file size in kilobytes, the number of rows, and the number of columns. The primary implementation uses d3.csv with a Promise, while commented-out code shows an alternative approach using fetch, async/await, and d3.csvParse. The parsed data is rendered as plain text inside a pre element, with results formatted using d3.csvFormat to calculate the data length.

AI-generated description

A bare minimum HTML page.