Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Loading and Parsing CSV Data

Public visualization

Loading and Parsing CSV Data

0 stars0🌍 Public
Mmscoop16
Last edited Jun 14, 2022
Created on Jun 14, 2022
Forked from Hello HTML

This example demonstrates loading and parsing a CSV file from a remote URL using D3.js v5. It fetches a dataset of CSS named colors and displays key statistics about the file in a large text element. The visualization reports the file size in kilobytes, the total number of rows, and the number of columns. The code uses the `d3.csv` function to asynchronously fetch and parse the data, then leverages `d3.csvFormat` to calculate the file size. An alternative commented-out approach using the Fetch API, `async`/`await`, and `d3.csvParse` is also shown, along with a basic nested-callback example.

AI-generated description

A bare minimum HTML page.

Comments

Sign in to join the discussion.

MIT Licensed