Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Loading and Parsing CSV Data

Public visualization

Loading and Parsing CSV Data

0 stars0🌍 Public
Llaurajchang
Last edited Mar 1, 2021
Created on Mar 1, 2021
Forked from HTML Starter

This example demonstrates how to load and parse CSV data using D3.js v6. It fetches a remote CSS named colors dataset and displays the file size, row count, and column count in large text. The code uses `d3.csv` to retrieve and parse the data, then accesses `d3.csvFormat` to calculate the byte size and reads `data.length` and `data.columns.length` for the record metrics. The output is rendered into a `<pre>` element via `document.getElementById`.

AI-generated description

A script to load and parse some CSV data.

Comments

Sign in to join the discussion.

MIT Licensed