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)

7da9ffbae7174ff0a689f8482b158d98

Loading and Parsing CSV Data

0 stars0🌍 Public
SShuyu Zheng
Last edited Dec 23, 2020
Created on Dec 23, 2020
Forked from HTML Starter

This example demonstrates how to load and parse a CSV file using D3 v6, displaying the size, row count, and column count of the dataset in a large text block. The program fetches a CSV file containing CSS named colors from a GitHub gist via `d3.csv`, then uses `d3.csvFormat` to calculate the data size in kilobytes. It accesses the parsed array’s `length` and `columns` properties to report the number of rows and columns, finally writing the summary to the page with `document.getElementById`.

AI-generated description

A program Loading and Parsing CSV Data