Skip to main content
100%

Loading and parsing CSV Data and visualizing

✓ Published0🌍 Public
Ssmsk2980
Last edited May 8, 2021
Created on May 8, 2021

This example loads a CSV file of CSS named colors using d3.csv and displays basic metadata about the dataset in large text. It reports the file size in kilobytes, the number of rows, and the number of columns, computed with d3.csvFormat and the data's columns property. The visualization relies on D3 v6’s promise-based CSV parsing and DOM manipulation via document.getElementById. A commented-out alternative demonstrates the equivalent approach using fetch, async/await, 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