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)

76ed132a74394a59afe432fa37605733

Loading and Parsing CSV Data

0 stars0🌍 Public
JJoakim Warholm
Last edited Jun 16, 2021
Created on Jun 16, 2021

This example demonstrates loading and parsing a CSV file containing CSS named colors. It fetches the remote CSV using D3's `d3.csv` method and then displays three summary statistics: the file size in kilobytes, the number of rows, and the number of columns. The output is rendered as plain text within an HTML `<pre>` element, with the font size enlarged via CSS. The code also includes a commented-out alternative using `fetch` and `d3.csvParse`, showing a manual parsing approach.

AI-generated description