🌍 Public
Viewing a saved revision (read-only)
b22b8f5cf61046559923a1d32556f65a
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