🌍 Public
Viewing a saved revision (read-only)
66ab12f6337044df8875387b19eea74e
Loading and parsinc CSV data
This example demonstrates loading and parsing CSV data using D3.js, displaying the file size in kilobytes, row count, and column count of a dataset of CSS named colors fetched from a GitHub Gist. The code uses `d3.csv` to asynchronously retrieve and parse the remote CSV, then computes the formatted size with `d3.csvFormat` before rendering the summary into an HTML `<pre>` element. Alternatives using the Fetch API with `d3.csvParse` are also included as comments.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.