🌍 Public
Viewing a saved revision (read-only)
ee021ba2f09e458087cade9388e5a206
Loading and Parsing CSV data
This example demonstrates how to load and parse CSV data from a remote URL using D3.js v7. It displays a summary of the dataset, including its approximate size in kilobytes, row count, and column count, in a large text element. The code uses the `d3.csv` method to fetch and parse the data, then accesses the resulting array's `length` and `columns` properties. The data source is a GitHub Gist containing CSS named colors. The script also includes commented-out alternatives using the Fetch API with `d3.csvParse`.
AI-generated descriptionA program that loads and parses CSV data