Fetching data on web
✓ Published0🌍 Public
This example demonstrates fetching CSV data over the web and parsing it for use in a visualization. It shows two approaches: a custom `fetchText` function that manually retrieves the text and passes it to `d3.csvParse`, and the direct use of `d3.csv` which internally handles asynchronous requests. Both log the parsed data from a gist containing CSS named colors to the console. The code relies on the Fetch API, async/await, and D3 v5’s CSV parsing utilities within a plain HTML page.
AI-generated descriptionA bare minimum HTML page.
See also React Starter.
MIT Licensed