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 stars1🌍 Public
BbeauMarko
Last edited Jan 26, 2021
Created on Jan 21, 2021
Forked from HTML Starter

This example demonstrates how to load and parse a CSV file using D3.js v6, displaying basic dataset statistics as text. It fetches a remote CSV file containing CSS named colors and calculates the file size in kilobytes, the number of data rows, and the number of columns. The code uses `d3.csv` to asynchronously retrieve and parse the data, then `d3.csvFormat` to measure its formatted string length. Results are shown in the browser console and rendered in a large `<pre>` element on the page.

AI-generated description

A program that loads and parses some csv data.

Comments

Sign in to join the discussion.

MIT Licensed