🌍 Public
Viewing a saved revision (read-only)
05302b69fe3847e3ae88f6881c0f91c9
loading CSV Data
This example demonstrates how to load a CSV file from a GitHub Gist using D3 v7. It displays the file size in kilobytes, the number of rows, and the number of columns in the dataset. The code uses `d3.csv` to fetch and parse the remote CSV file, then `d3.csvFormat` and `data.columns.length` to compute the metrics. The results are rendered as text in a large `<pre>` element. The data source is the CSS named colors dataset hosted as a raw Gist file.
AI-generated descriptionloading csv data from github gist