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)

0bfd0b6d5b87437e88b786573e56cabd

Loading and Parsing CSV Data

0 stars0🌍 Public
MMGamboa
Last edited Apr 30, 2021
Created on Apr 27, 2021

This example demonstrates loading and parsing CSV data using D3 v6. It fetches a dataset of CSS named colors from a GitHub gist and displays three summary values: file size in kilobytes, total row count, and column count. The code uses `d3.csv` to load the remote file and `d3.csvFormat` to calculate its size, then renders the results as large text. The page also shows a commented-out older approach using `fetch` and `d3.csvParse` for comparison.

AI-generated description