Skip to main content
100%

Loading and Parsing CSV Data

✓ Published0🌍 Public
Kkevin-jake
Last edited Apr 6, 2022
Created on Apr 6, 2022
Forked from HTML Starter

This example demonstrates how to load and parse CSV data using the D3.js library, displaying summary statistics about the dataset in a large text block. The visualization fetches a remote CSV file containing CSS named colors from a GitHub Gist, then uses `d3.csv` to parse the data and `d3.csvFormat` to measure its size. The output shows the file size in kilobytes, the number of rows, and the number of columns, providing a quick overview of the dataset's structure. The code also includes commented-out alternatives using the `fetch` API and `d3.csvParse`.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes