Skip to main content
100%

Loading and Parsing CSV Data

✓ Published0🌍 Public
Hhamzavg
Last edited Jun 6, 2022
Created on Jun 6, 2022

This example demonstrates how to load and parse a CSV dataset using D3.js v7, displaying file size, row count, and column count for the CSS Named Colors dataset. The page uses `d3.csv()` to asynchronously fetch the data from a GitHub Gist URL, then `d3.csvFormat()` calculates the formatted string length in kilobytes. The `d3.csv()` promise chain updates the HTML `<pre>` element with the computed statistics, showing parsed dataset dimensions without any visual chart. The code relies on D3’s data handling APIs rather than creating marks or encodings.

AI-generated description
MIT Licensed

Similar vizzes