Skip to main content
100%

Parsing data with D3 csvParse

✓ Published1🌍 Public
RRuanzhenglin
Last edited Apr 14, 2021
Created on Apr 14, 2021

This example demonstrates how to parse CSV data using D3’s `csvParse` method and display basic summary statistics. It fetches a remote CSV file containing CSS named colors, then shows the file size in kilobytes, the number of rows, and the number of columns in a large `<pre>` element. The code uses the Fetch API to retrieve the text, D3 v6’s `csvParse` to convert it into an array of objects, and plain DOM manipulation to update the message container.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes