{"version":"1.0","type":"rich","title":"Dataviz 2 - Loading data (Fetch)","description":"This example demonstrates how to load external data into a web page using the JavaScript `fetch` API. It retrieves a CSV file containing CSS named colors from a GitHub Gist and logs the raw text to the browser console. The code defines an asynchronous helper function `fetchText` that requests the URL and parses the response as text using `response.text()`. A commented-out alternative shows chained promises for the same operation. The visualization itself is not rendered; the example focuses solely on the data-loading step.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/8cc86c880274498da25f33c36ef9f1b2?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}