Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Loading and Parsing CSV Data

Public visualization

Fork of Loading and Parsing CSV Data

0 stars0🌍 Public
Bblueyjuice
Last edited Nov 9, 2021
Created on Nov 9, 2021

This example demonstrates loading and parsing a CSV file containing CSS named colors, displaying the file size, row count, and column count in large text. The code uses D3 v5’s `d3.csv` method with a promise to fetch and parse the remote CSV data. It also includes commented alternatives using the Fetch API with `async`/`await` and `d3.csvParse`, as well as a nested promise “pyramid of doom” pattern. The rendered output is a simple text summary within a `pre` element.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed