Loading and Parsing CSV Data
This example demonstrates how to load and parse a remote CSV file using D3 v7’s `d3.csv` method. It fetches the CSS named colors dataset from a GitHub Gist, then logs a summary of the data to the console and displays it on the page, including the URL, file size in kilobytes, row count, and column count. The code also includes a commented-out alternative using `fetch` and `d3.csvParse`. The visualization is minimal, showing only text output rather than a graphical chart.