Skip to main content
100%

Fork of Loading and Parsing CSV Data

✓ Published0🌍 Public
LLívia Pinheiro
Last edited Aug 13, 2024
Created on Aug 13, 2024

This example demonstrates how to load and parse CSV data from a remote URL, displaying summary statistics about the dataset. It uses the D3.js version 5 `d3.csv` function to fetch the CSS Named Colors dataset, then presents the file size in kilobytes, row count, and column count within an HTML `<pre>` element. The code also includes a commented-out alternative approach using the Fetch API with `async`/`await` and `d3.csvParse` for parsing. The visualization is minimal, focusing on the data-loading process rather than graphical rendering.

AI-generated description
MIT Licensed

Similar vizzes