Skip to main content
100%

Loading and Parsing CSV Data

✓ Published1🌍 Public
ZZoe Ferencova
Last edited Mar 6, 2023
Created on Mar 6, 2023
Forked from HTML Starter

This example demonstrates how to load and parse CSV data in D3.js, displaying the dataset’s size in rows, columns, and kilobytes on a webpage. It fetches a remote CSV file containing CSS named colors using d3.csv, then formats the parsed data with d3.csvFormat to calculate its size. The code also includes an alternative commented approach using fetch, async/await, and d3.csvParse for explicit text handling. The output is rendered as plain text inside a pre element, styled with large font size for readability.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes