🌍 Public
Viewing a saved revision (read-only)
8081042677bc4757830550da0de5f424
Loading and Parsing Coronavirus Data
This example demonstrates how to load and parse a CSV dataset containing CSS named colors using d3.csv. It displays the file size in kilobytes, the number of rows, and the number of columns in a large HTML <pre> element. The code fetches data from a GitHub gist URL and uses the Promise-based .then() method to process the returned array. It calculates the formatted CSV length with d3.csvFormat and reports the dataset’s dimensions.
AI-generated descriptionA program that loads and parses some CSV data: CSS Named Colors.
See also: