Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Loading and Parsing CSV Data

Public visualization

Fork of Loading and Parsing CSV Data

0 stars0🌍 Public
Ssrideshhimalka@gmail.com
Last edited Apr 30, 2024
Created on Apr 30, 2024

This example demonstrates loading and parsing CSV data by fetching the CSS Named Colors dataset and displaying its size, row count, and column count in large text. Using D3.js v5, the code calls `d3.csv` to retrieve and parse the remote CSV file, then formats the summary with `d3.csvFormat` and measures the data length. It also includes commented-out alternatives using `fetch` with asynchronous `await` syntax. The rendered output shows three lines of aggregate statistics, with the data source pulled from a GitHub Gist.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed