🌍 Public
Viewing a saved revision (read-only)
7da9ffbae7174ff0a689f8482b158d98
Loading and Parsing CSV Data
This example demonstrates how to load and parse a CSV file using D3 v6, displaying the size, row count, and column count of the dataset in a large text block. The program fetches a CSV file containing CSS named colors from a GitHub gist via `d3.csv`, then uses `d3.csvFormat` to calculate the data size in kilobytes. It accesses the parsed array’s `length` and `columns` properties to report the number of rows and columns, finally writing the summary to the page with `document.getElementById`.
AI-generated descriptionA program Loading and Parsing CSV Data