Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Loading and Parsing CSV Data

Public visualization

Viewing a saved revision (read-only)

af413a9229c64eb0892c26687ba44014

Fork of Loading and Parsing CSV Data

0 stars0🌍 Public
KKenneth Silvere
Last edited Jun 19, 2021
Created on Jun 19, 2021

This example demonstrates the loading and parsing of a CSV file containing CSS Named Colors. It displays a summary message showing the data size in kilobytes, the number of rows, and the number of columns. The visualization uses D3 v5’s `d3.csv` method to fetch the remote CSV data and handle it as a Promise. The code then uses `d3.csvFormat` to calculate the data size and accesses the `data.columns` property to determine the column count, rendering the final text inside an HTML `<pre>` element.

AI-generated description