🌍 Public
Viewing a saved revision (read-only)
4f445cae822e4d77afb3d7bd0b47a01c
Parsing CSV data with D3
This example demonstrates how to load and parse a CSV file from a remote URL using D3 v6. It displays the file size, row count, and column count on the page. The code uses `d3.csv` to fetch and parse the data asynchronously, then accesses the resulting array and its `columns` property, while `d3.csvFormat` is used to measure the raw text length. The data comes from a GitHub gist containing CSS named colors.
AI-generated descriptionA program that loads and parses some CSV data.