Skip to main content
100%

Loading and Parsing CSV Data part 2

✓ Published1🌍 Public
Rrsulli4
Last edited Apr 29, 2023
Created on Apr 29, 2023

This example demonstrates how to load and parse CSV data from a remote URL, displaying basic file statistics as large text: the size in kilobytes, the number of rows, and the number of columns. It uses D3 v5’s `d3.csv` method to fetch and parse the data, then accesses the resulting array’s length and the `columns` property to report row and column counts. The code also computes the file size from `d3.csvFormat(data).length`. The data source is a GitHub Gist containing CSS named colors, and the output is rendered inside a `<pre>` element with a large font size.

AI-generated description

A program that loads and parses some CSV data.

MIT Licensed

Similar vizzes