Skip to main content
100%

ICE-5: Loading and Parsing CSV Data with D3.js

✓ Published0🌍 Public
Ppreethamkesa
Last edited Feb 28, 2022
Created on Feb 27, 2022

This example demonstrates how to load and parse external CSV data using D3.js, displaying the dataset's size, row count, and column count in a styled HTML page. It fetches data from a GitHub gist URL using the `d3.csv()` method, then formats the output with `d3.csvFormat()` to calculate the file size in kilobytes. The page includes a heading, a pink message container, and an image of a gold cat, all styled with basic CSS. The code relies on D3 v7, imported via a CDN, and updates the DOM through `document.getElementById()`.

AI-generated description

Template for workshop.

MIT Licensed

Similar vizzes