🌍 Public
Viewing a saved revision (read-only)
2fb09b5c7819458997ccf0cc0b7e3080
Loading Data practice
This example demonstrates loading a remote CSV file and displaying summary statistics about it: the data size in kilobytes, row count, and column count. It uses D3 v5’s asynchronous `d3.csv()` method to fetch and parse the data from a GitHub gist containing CSS named colors, then computes the formatted size via `d3.csvFormat()`. The results are rendered as plain text in an HTML `<pre>` element. An alternative commented-out approach using `fetch()` and `d3.csvParse()` is also provided in the code.
AI-generated description