Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Loading and Parsing CSV Data

Public visualization

Loading and Parsing CSV Data

0 stars0🌍 Public
Wwaur1024
Last edited Mar 10, 2022
Created on Mar 10, 2022
Forked from Hello VizHub

This example demonstrates how to load and parse a CSV file using D3 v7’s `d3.csv` method, then reports the dataset’s size in rows, columns, and kilobytes. The data comes from a remote GitHub gist containing CSS named colors. The code also includes an alternative approach using the Fetch API and `d3.csvParse` to handle the CSV text directly. Results are displayed in a large `<pre>` element, with the file size rounded to the nearest kilobyte.

AI-generated description

A program that loads and parse the data.

Comments

Sign in to join the discussion.

MIT Licensed