Skip to main content
100%

Fork of Loading and Parsing CSV Data

✓ Published0🌍 Public
Ppytorchgirl
Last edited Dec 4, 2021
Created on Dec 4, 2021

This example demonstrates how to load and parse a CSV file by fetching raw text and displaying basic dataset statistics. It uses the Fetch API to retrieve a CSV file containing CSS named colors from a GitHub gist, then parses it with `d3.csvParse` to convert the text into an array of objects. The code reports the file size in kilobytes, row count, and column count, displaying these metrics in a large `<pre>` element for clarity. The visualization relies on D3 v5 for parsing while handling the asynchronous text retrieval through JavaScript promises.

AI-generated description

A program that loads and parses some CSV data.

MIT Licensed

Similar vizzes