Skip to main content
100%

Loading and Parsing CSV Data

✓ Published0🌍 Public
MMarat
Last edited Apr 12, 2021
Created on Apr 11, 2021
Forked from HTML Starter

This example demonstrates how to load and parse a CSV file using D3.js, displaying summary statistics about the dataset in large text. It fetches a CSV of CSS color names and uses `d3.csv` to parse the data, then reports the file size in kilobytes, the number of rows, and the number of columns. The code also includes a commented-out alternative approach using the Fetch API and `d3.csvParse` for manual text handling. The visualization is minimal, relying solely on a `<pre>` element styled with CSS to present the results.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes