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
FFonda Irena Santoso
Last edited Apr 21, 2021
Created on Apr 21, 2021

This example demonstrates loading and parsing CSS Named Colors data from a CSV file using D3 v5’s `d3.csv` method, which returns a promise. The visualization displays three summary statistics as large text: the file size in kilobytes, the number of data rows, and the number of columns. The code also includes commented alternatives using `fetch`, `async`/`await`, and `d3.csvParse`, plus a “pyramid of doom” nested fetch example, illustrating different approaches to asynchronous data loading. The computed values are shown in a `<pre>` element without any graphical chart.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed