Skip to main content
100%

fetch after

✓ Published0🌍 Public
NNicolás Troncoso
Last edited Apr 1, 2021
Created on Apr 1, 2021

This example demonstrates the use of D3 v5's `d3.csv` method to load a CSV dataset containing CSS Named Colors from a remote URL, then parses and displays summary statistics about the data. The page renders the file size in kilobytes, row count, and column count in large text within a `<pre>` element. The code highlights the modern asynchronous pattern with promises via `.then()`, while commented-out alternatives show `fetch` with `async`/`await` and a nested "pyramid of doom" approach for comparison.

AI-generated description
MIT Licensed

Similar vizzes