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)

4ea6f7b5e416409e98c350258087a958

Loading and Parsing csv data

0 stars0🌍 Public
Kkcai93
Last edited Aug 22, 2022
Created on Aug 19, 2022
Forked from smiley face I

This example demonstrates how to load and parse a CSV file using D3 v7, displaying the file size in kilobytes, the number of rows, and the number of columns from the CSS named colors dataset. It uses the `d3.csv` method to fetch and parse the remote CSV, then `d3.csvFormat` to calculate the file size and the `data.columns` property to count attributes. The resulting summary is rendered as large text inside a `<pre>` element.

AI-generated description

A program that loads and parses csv data