Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Loading a parsing CSV Data.

Public visualization

Viewing a saved revision (read-only)

4ca2901c2f98478ba539f88b72e2abef

Loading a parsing CSV Data.

0 stars0🌍 Public
AAlexander Dorling
Last edited May 11, 2021
Created on May 11, 2021
Forked from HTML Starter

This example demonstrates how to load and parse CSV data using D3 v6, displaying file size, row count, and column count in large text. The code fetches a CSS named colors dataset from a GitHub Gist URL using d3.csv, which parses the remote CSV file into an array of objects. It then formats the data with d3.csvFormat, calculates its size in kilobytes, and accesses row and column counts through the parsed data array and its columns property. The results are written into the DOM via a pre element.

AI-generated description

program loads and parses csv data