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)

c88ec3d219794a029d19cd661a922193

Loading and Parsing CSV data

0 stars0🌍 Public
Hhiteshk-itis
Last edited Apr 16, 2023
Created on Apr 16, 2023
Forked from HTML Starter

This example demonstrates how to load and parse CSV data from a remote URL using d3.csv, then displays summary statistics about the dataset in a large HTML `<pre>` element. The code counts the number of rows and columns in the parsed data, calculates the approximate file size of the CSV-formatted content, and renders these three metrics as plain text. The visualization uses D3.js v7, specifically the d3.csv and d3.csvFormat APIs, with the data sourced from a gist containing CSS named colors.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.