Skip to main content
100%

Loading and parsing CSV data

✓ Published0🌍 Public
MMonish Vassantrai
Last edited Sep 16, 2021
Created on Mar 10, 2021
Forked from HTML Starter

This example demonstrates how to load and parse CSV data from a remote URL using D3.js. It fetches a dataset of CSS named colors and outputs the parsed array of objects to the browser console. The code uses the D3 v6 `d3.csv` method with a promise-based `.then` callback, and also includes a commented alternative approach using the Fetch API's `fetch` and `d3.csvParse` for manual text parsing. The example focuses on data acquisition and transformation rather than visual rendering.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes