Loading data with Fetch
✓ Published1🌍 Public
This example demonstrates how to load external data using the Fetch API and parse it with D3’s `d3.csvParse`. It fetches the Anscombe tidy dataset from a GitHub gist, then displays the file size in kilobytes, row count, and column count in large text. The code defines an async `fetchText` helper to retrieve the raw CSV and uses a promise chain to update the page’s content. The visualization is minimal, focusing on data-loading mechanics rather than graphical representation, with styling applied via a `<pre>` element.
AI-generated descriptionMIT Licensed