🌍 Public
Viewing a saved revision (read-only)
afd6b5fc87a14ae095481adf508d2fdc
Loading and Parsing CSV Data
This example demonstrates the basic mechanics of loading and parsing a CSV dataset with D3.js. It displays three key statistics about the retrieved file: its size in kilobytes, the number of rows, and the number of columns. The visualization uses the `d3.csv` function to asynchronously fetch and parse the data from a GitHub Gist containing CSS named colors. The parsed result is then accessed to count rows and columns, while `d3.csvFormat` calculates the total data size for the reported metrics.
AI-generated descriptionA program that loads and parses some CSV Data.