🌍 Public
Viewing a saved revision (read-only)
f5b7d30778594f14bfbb1e0df24f6b3a
Loading and parsing csv
This example demonstrates fetching a remote CSV file and parsing it into JavaScript objects using the `fetch` API and `d3.csvParse`. The code loads the text from a GitHub Gist URL, converts it into structured data, and logs the resulting array to the browser’s developer console. The page is minimal, with large styled text and no visual rendering, focusing purely on the data-loading workflow. D3 v6 is loaded via a CDN, and the process is wrapped in an asynchronous function called on page load.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.