Skip to main content
100%

Loading and Parsing CSV Data

✓ Published0🌍 Public
SShuyu Zheng
Last edited Dec 23, 2020
Created on Dec 23, 2020
Forked from HTML Starter

This example demonstrates how to load and parse a CSV file using D3 v6, displaying the size, row count, and column count of the dataset in a large text block. The program fetches a CSV file containing CSS named colors from a GitHub gist via `d3.csv`, then uses `d3.csvFormat` to calculate the data size in kilobytes. It accesses the parsed array’s `length` and `columns` properties to report the number of rows and columns, finally writing the summary to the page with `document.getElementById`.

AI-generated description

A program Loading and Parsing CSV Data

MIT Licensed

Similar vizzes