Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Loading and Parsing CSV Data

Public visualization

Viewing a saved revision (read-only)

16b064e0dbe24a2e813f5553f8bcca8a

Loading and Parsing CSV Data

0 stars0🌍 Public
Aatree-rohit
Last edited Aug 20, 2020
Created on Aug 20, 2020

This example demonstrates how to load and parse CSV data into a usable format, displaying the result as a text summary of file size, row count, and column count. It uses the D3.js `csv` function to fetch and parse a remote CSV file of CSS named colors, then formats the parsed data with `d3.csvFormat`. The interface includes a file input for user-selected local CSV files, triggering the same parsing workflow via the `onchange` event handler.

AI-generated description

A program that loads and parses some CSV data: CSS Named Colors.