Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Loading and Parsing CSV Data

Public visualization

Viewing a saved revision (read-only)

c074ad1e22ef4f5d81a273e2ac4efa55

Loading and Parsing CSV Data

0 stars0🌍 Public
Hhuashe418
Last edited Mar 19, 2022
Created on Mar 19, 2022

This example demonstrates loading and parsing CSV data from a remote URL, displaying summary statistics about the CSS Named Colors dataset. The page shows the data size in kilobytes, row count, and column count in a large monospace font. The code uses `d3.csv()` to fetch and parse the data asynchronously, then formats the summary using `d3.csvFormat()`. An alternative approach using the Fetch API with `d3.csvParse()` is provided in commented-out code.

AI-generated description