Fetching data on web
✓ Published1🌍 Public
This example demonstrates how to fetch and parse CSV data from a remote URL in a web browser. The code uses the `fetch` API to retrieve a plain-text file containing CSS named colors from a GitHub gist, then passes the response text to D3’s `csvParse` function for parsing. The parsed data is logged to the console via `console.log`. The example runs entirely in an HTML page with D3 v5 loaded from a CDN, without any additional framework or rendering to the screen.
AI-generated descriptionA bare minimum HTML page.
See also React Starter.
MIT Licensed