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)

de9875a2d5834f678294a05004d67600

Loading and parsing CSV data

0 stars0🌍 Public
MMyTrueName
Last edited Apr 23, 2021
Created on Apr 22, 2021
Forked from HTML Starter

This example demonstrates the basics of loading and parsing CSV data with D3.js. It displays a summary message showing the number of rows, columns, and file size in kilobytes of a remote CSV file containing CSS named colours. The code uses `d3.csv()` to fetch and parse the data asynchronously, then accesses the resulting object’s `length` and `columns` properties to create the summary. The parsed data is formatted back with `d3.csvFormat()` to calculate the file size, and the message is rendered in a large `<pre>` element.

AI-generated description

A program that loads and parses CSV data.