🌍 Public
Viewing a saved revision (read-only)
ac0ac90891a447599d9a8e1aca442e67
Loading and parsing CSV data
This example demonstrates how to load and parse CSV data using D3 v7. It displays the dataset size in kilobytes, column count, and row count as plain text on the page. The code uses `d3.csv` to fetch and parse a remote CSV file containing CSS named colors from a GitHub gist, then formats a summary message with `d3.csvFormat` to calculate the size. An alternative commented-out approach using the Fetch API with `d3.csvParse` is also shown.
AI-generated descriptionA program that loads and parses CSV data