Skip to main content
100%

Loading and parsing CSV data

✓ Published0🌍 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.

MIT Licensed

Similar vizzes