Skip to main content
Public

Share visualization

Loading preview…

fetch after

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

fetch after

0
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

Comments

Sign in to join the discussion.

MIT Licensed