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)

0bb39def0085434b85f4c53bcbc5476c

Fork of Loading and Parsing CSV Data

0 stars0🌍 Public
Bbrad1024
Last edited Sep 28, 2022
Created on Sep 28, 2022

This example demonstrates loading and parsing CSV data from a remote URL, summarizing the dataset’s size, row count, and column count in a large text display. It uses D3 v5’s `d3.csv()` method, which returns a promise, to fetch the auto-mpg dataset from VizHub. The code also shows commented-out alternatives using the Fetch API with `async`/`await` and `d3.csvParse`, highlighting different ways to handle asynchronous data loading in a React-based project.

AI-generated description