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)

54c63a074b0d47859e7c6dc9cd3f71db

Loading and parsing csv data

0 stars0🌍 Public
AAnkit-Ian-53787
Last edited Oct 20, 2021
Created on Oct 20, 2021

This example demonstrates how to load and parse CSV data from a remote URL, displaying the file size and column count. It first fetches the text data asynchronously, then uses `d3.csvParse` to convert it into an array of objects. The code reads a CSS named colors dataset from a GitHub gist, checks its size in kilobytes, and counts the parsed columns before updating the page’s message container. The example relies on the Fetch API and D3.js v7 for parsing and text manipulation.

AI-generated description

A program that loads and parses csv data