🌍 Public
Viewing a saved revision (read-only)
c88ec3d219794a029d19cd661a922193
Loading and Parsing CSV data
This example demonstrates how to load and parse CSV data from a remote URL using d3.csv, then displays summary statistics about the dataset in a large HTML `<pre>` element. The code counts the number of rows and columns in the parsed data, calculates the approximate file size of the CSV-formatted content, and renders these three metrics as plain text. The visualization uses D3.js v7, specifically the d3.csv and d3.csvFormat APIs, with the data sourced from a gist containing CSS named colors.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.