Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Loading and Parsing CSV Data on "All Space Missions from 1957"

Public visualization

Loading and Parsing CSV Data on "All Space Missions from 1957"

0 stars0🌍 Public
Llintonylin
Last edited Sep 7, 2020
Created on Sep 7, 2020

This example displays summary statistics for a CSV dataset of all space missions from 1957, showing the file size in kilobytes, row count, and column count in large text. It loads the data using `d3.csv` with a promise, then calculates the metrics via `d3.csvFormat` and the parsed data’s `length` and `columns` properties. The code also includes commented alternatives using `fetch` with `async/await` and `d3.csvParse`, as well as a nested promise “pyramid of doom” pattern. The data source is a raw GitHub Gist URL.

AI-generated description

A program that loads and parses some CSV data: All Space Missions from 1957.

Comments

Sign in to join the discussion.

MIT Licensed