🌍 Public
Viewing a saved revision (read-only)
afb40fa79c184d18a150807375590940
Loading and Parsing CSV Data
This example demonstrates how to load and parse CSV data from a remote URL using D3's `d3.csv` function. The program fetches a dataset of CSS named colors from a GitHub gist and then displays a summary containing the dataset's file size, number of rows, and number of columns. The summary is rendered in large text within a `<pre>` element using the `d3.csvFormat` API and basic JavaScript string concatenation. The code highlights the simplicity of asynchronous data loading in D3 v7.
AI-generated descriptionA program that loads some CSV data