Skip to main content
100%

Loading and Parsing CSV Data

✓ Published0🌍 Public
Iiblub
Last edited Sep 22, 2021
Created on Sep 22, 2021
Forked from D3 Starter

This example demonstrates the asynchronous loading of a CSV file in D3 version 7, using the `fetch` API to retrieve named color data from a GitHub Gist. The code defines an `async` function that awaits the network response and text parsing, then logs the raw CSV content to the console. The page itself displays the static text "Hello D3 version 6" set via `d3.select`, contrasting the simple DOM manipulation with the more complex data-fetching pipeline. The approach highlights modern promise-based syntax over older nested callback patterns.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes