Skip to main content
100%

Parsing CSV Data

✓ Published0🌍 Public
Nnicklaus-roy
Last edited Apr 8, 2021
Created on Apr 7, 2021
Forked from HTML Starter

This example demonstrates how to load and parse a CSV file from a remote URL using D3.js version 6. The visualization, displayed in the browser console, shows the parsed data structure from a gist containing CSS named colors. The code uses `d3.csv` to fetch and parse the URL directly, and also shows an alternative approach using the Fetch API with `d3.csvParse` to manually parse the text response. Both methods log the resulting array of objects, with the second approach also logging the data’s size property.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes