Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Loading and Parsing CSV Data

Public visualization

Viewing a saved revision (read-only)

fccfb47a95bb4e7ab1b24c498a1b9523

Fork of Loading and Parsing CSV Data

0 stars0🌍 Public
CChristian Rohrer
Last edited Jan 27, 2023
Created on Jan 27, 2023

This example demonstrates the process of loading and parsing CSV data from a remote URL, displaying the file size, row count, and column count of the dataset. The code uses either the `d3.csv` method or the `fetch` API combined with `d3.csvParse` and async/await syntax to handle the data retrieval. The data source is a gist containing CSS named colors, and the results render as text in a large-format `pre` element. The example also includes commented-out code showing a nested Promise "pyramid of doom" pattern for comparison.

AI-generated description