🌍 Public
Viewing a saved revision (read-only)
96718b336dcd4d71b3f74264123bb16b
Parsing CSV data with D3
This example demonstrates the basic mechanics of loading and parsing a CSV dataset with D3. It fetches a remote file of named CSS colors and displays summary statistics about the parsed data in large text. The code uses `d3.csv` to retrieve and parse the data asynchronously, then calls `d3.csvFormat` to measure the raw size in kilobytes. It reports the total number of data rows and the count of columns from the parsed array, showing how D3 structures tabular data as an array of objects.
AI-generated descriptionA program that loads and parses csv data