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)

45378d1bc22743f2acf4a6ea3cb5d05a

Fork of Loading and Parsing CSV Data

0 stars0🌍 Public
AAlex Gomes
Last edited Mar 1, 2022
Created on Mar 1, 2022

This example demonstrates loading and parsing CSV data by fetching a dataset of CSS named colors and displaying basic statistics about it. The code uses the Fetch API with async/await to retrieve the data, then parses it with d3.csv, which returns a promise. It computes the file size in kilobytes, row count, and column count from the parsed data, displaying these values in a large pre-formatted text element. The visualization also includes commented-out code showing an alternative approach using d3.csvParse on raw text.

AI-generated description