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
PPirialMersus
Last edited Jun 28, 2022
Created on Jun 28, 2022

This example demonstrates how to load and parse a CSV file containing CSS named colors using D3 v5. It displays a summary of the dataset, showing the file size in kilobytes, the number of rows, and the number of columns in a large text element. The code uses the `d3.csv` method with a Promise to fetch and parse the remote data, then counts the formatted output via `d3.csvFormat`. The data source is a GitHub Gist containing color names and their hexadecimal values.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed