Loading and parsing csv data
This example demonstrates the fundamental first step in working with data: fetching a remote CSV file and examining its raw contents. It shows how to retrieve text data from a URL using the standard JavaScript `fetch` API, then outputs the resulting CSV string directly to the browser console. The code defines an asynchronous utility function, `fetchText`, which simplifies the process of getting a plain-text response. It then applies this function to a specific CSV file hosted on GitHub Gist, which contains a list of CSS named colors and their corresponding hexadecimal values. The visualization itself is minimal, focusing on the console output rather than rendering a chart, making it a clear template for data loading and parsing.