Skip to main content
100%

Loading and parsing CSV data

✓ Published0🌍 Public
RRoberto M
Last edited Feb 19, 2022
Created on Nov 22, 2021
Forked from HTML Starter

This example demonstrates loading a CSV file from a remote URL and displaying basic statistics about the dataset, including its size in kilobytes, row count, and column count. The visualization uses D3.js v7, specifically the `d3.csv` function to asynchronously fetch and parse the data from a GitHub gist containing CSS named colors. The parsed data is then processed with `d3.csvFormat` to calculate the file size, while the row and column counts are retrieved from the data object's properties. The results are presented as plain text in a large `<pre>` element on the page.

AI-generated description

A program that loads and parses CSV data.

MIT Licensed

Similar vizzes