🌍 Public
Viewing a saved revision (read-only)
adb30e8838e94fd1a9f104276aced6ac
Loading and parsing csv data
This example demonstrates how to load and parse CSV data from a remote URL using D3.js version 7. The page displays no visual output, instead showing the parsed data in the browser’s console. It uses the `fetch` API to retrieve the text from a gist-hosted colors.csv file, then passes that response to `d3.csv`, which parses the comma-separated values into an array of objects. The resulting dataset is logged to the console for inspection, illustrating the basic data-loading workflow without any chart or rendering.
AI-generated description