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)

bf8e7bc49deb4906b55584605882a621

Loading and Parsing CSV Data

0 stars0🌍 Public
Mmbindal-10
Last edited Aug 9, 2022
Created on Aug 7, 2022
Forked from Hello HTML

This example demonstrates how to load and parse a CSV file using D3.js, displaying summary statistics about the dataset in a large text format. The page fetches a sample CSV file from a GitHub Gist using the `d3.csv` method, which returns a promise with the parsed data. The code then calculates and presents the file size in kilobytes, the number of columns, and the number of rows by using `d3.csvFormat` to reconstruct the CSV text. The statistics are rendered in the browser via the `message-container` element using D3 v7.

AI-generated description

A bare minimum HTML page.