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)

37b39a2bb5494c3fa043a9f33d1fcec8

Loading and Parsing CSV Data

0 stars0🌍 Public
Kkosakase
Last edited Apr 5, 2021
Created on Feb 22, 2021

This example demonstrates the basic workflow of loading and parsing CSV data using D3.js v6. It displays the file size in kilobytes, the number of rows, and the number of columns from a remote CSV file containing CSS named colors. The code uses `d3.csv()` to fetch and parse the data, then `d3.csvFormat()` to calculate the formatted size, and reads the parsed array’s `length` and `columns` properties. The resulting statistics are rendered as large text inside a `<pre>` element via the DOM API.

AI-generated description

A program that loads and parses some CSV data.