Skip to main content
100%

TINTIN Loading and Parsing CSV Data

✓ Published0🌍 Public
Ppnlinyz
Last edited Apr 17, 2021
Created on Apr 17, 2021

This example demonstrates how to load and parse a CSV file using D3.js, displaying a summary of the data's dimensions and size. It fetches a remote CSV file containing CSS named colors, parses it with `d3.csv`, and reports the row count, column count, and file size in kilobytes. The output is rendered as large text within a `<pre>` element using `textContent`, and the file size is calculated by measuring the formatted string length with `d3.csvFormat`. The code relies on the Fetch API to retrieve the raw text from a GitHub Gist URL.

AI-generated description

A program that loads and parses some CSV data.

MIT Licensed

Similar vizzes