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)

881e130ae31e43108ee611222cbca8c3

Fork of Loading and Parsing CSV Data

0 stars0🌍 Public
LLívia Pinheiro
Last edited Aug 13, 2024
Created on Aug 13, 2024

This example demonstrates how to load and parse CSV data from a remote URL, displaying summary statistics about the dataset. It uses the D3.js version 5 `d3.csv` function to fetch the CSS Named Colors dataset, then presents the file size in kilobytes, row count, and column count within an HTML `<pre>` element. The code also includes a commented-out alternative approach using the Fetch API with `async`/`await` and `d3.csvParse` for parsing. The visualization is minimal, focusing on the data-loading process rather than graphical rendering.

AI-generated description