{"version":"1.0","type":"rich","title":"Loading and parsing CSV data","description":"This example demonstrates how to load and parse a CSV file using the Fetch API and D3’s `d3.csvParse` function. It fetches a remote CSV file containing CSS named colors, parses the text into an array of objects, and logs the number of columns found in the data. The code defines an asynchronous `fetchText` helper that retrieves the raw CSV string, then passes it to `d3.csvParse` for conversion. The example highlights the separation between fetching raw text and D3’s parsing utilities, using D3 v6 and native browser `fetch`.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/cb418e59a1334965a1ebb7bebcd6c14a?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}