Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Loading and Parsing CSV Data

Public visualization

Viewing a saved revision (read-only)

4011a9b2bca2404d9cac27d261df24c2

Fork of Loading and Parsing CSV Data

0 stars0🌍 Public
KKian Candelario
Last edited Jul 3, 2022
Created on Jul 3, 2022
Forked from Hello VizHub

This example demonstrates how to load and parse a CSV file from a remote URL, displaying the file size, row count, and column count in a large text element. It uses D3 v7’s `d3.csv` method to fetch and parse the data asynchronously, then accesses the returned array’s `length` and `columns` properties to summarize the dataset. The data comes from a GitHub gist containing emission data. The code highlights D3’s streamlined CSV handling compared to manual `fetch` and `d3.csvParse` approaches shown in comments.

AI-generated description

A program that loads and parses CSV Data.