🌍 Public
Viewing a saved revision (read-only)
822122f901fd4b6a8d87cf13d8ce9f16
Loading and Parsing CSV Data
This example shows how to load and parse a CSV file using D3 v5, displaying the file size, row count, and column count of a dataset containing CSS named colors. The visualization uses the `d3.csv` method to fetch the remote CSV from a GitHub gist and parse it into an array of objects. After loading, it calculates the data’s byte size with `d3.csvFormat`, the number of rows via the array length, and the number of columns using the `data.columns` property. The resulting text is rendered in a large `<pre>` element, demonstrating the basic pipeline of asynchronous data loading and summary reporting.
AI-generated descriptionA bare minimum HTML page.