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
SSam Jukes
Last edited Jul 25, 2020
Created on Jul 25, 2020
Forked from HTML Starter

This example demonstrates how to load and parse a CSV file using D3 v5, displaying the file size, row count, and column count in a large text block. The code fetches a CSV of CSS named colors from a GitHub gist via `d3.csv`, which returns a promise, and then uses `d3.csvFormat` to measure the data size in kilobytes. The parsed data array and its `.columns` property provide the row and column totals, which are written into the page using standard DOM manipulation.

AI-generated description

This is where we're going to start analysing csv data.

Comments

Sign in to join the discussion.

MIT Licensed