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
Aashokganpathi
Last edited May 8, 2021
Created on May 8, 2021
Forked from Hello HTML

This example demonstrates how to load and parse a CSV file using D3 v6’s `d3.csv` method, which fetches the data and returns a promise. The program retrieves a remote CSV file containing CSS named colors, then computes and displays the number of rows, columns, and approximate file size in kilobytes within a large `<pre>` element. The code also includes commented-out alternatives using the Fetch API with `async/await` and `d3.csvParse` for manual text parsing, illustrating different approaches to CSV handling in D3.

AI-generated description

A program that parses and loads CSV data.

Comments

Sign in to join the discussion.

MIT Licensed