🌍 Public
Viewing a saved revision (read-only)
4f59d303af6444458724b1c15f3add9e
Loading data with fetch
This example demonstrates how to load an external CSV dataset using the native JavaScript fetch API. It fetches a namedcolor.csv file from a GitHub gist and logs the raw text response to the browser console, showing the data loading process before any visualization is created. The code uses async/await syntax within a custom fetchText function, with a commented-out alternative using promise chaining. The page itself is a bare HTML document with a simple CSS class and no additional libraries beyond standard web APIs.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.