Skip to main content
100%

Parsing CSV Data

✓ Published0🌍 Public
AAditya Khandelwal
Last edited Apr 28, 2021
Created on Apr 28, 2021

This example demonstrates how to fetch and parse CSV data from a remote URL, displaying the result as a text summary that reports the data size in kilobytes, the number of rows, and the number of columns. The visualization uses D3 v5’s `d3.csv` function to load and parse the data asynchronously, with the parsed result stored in a data object whose properties are accessed via `.length` and `.columns`. The interface is minimal, consisting of a single `<pre>` element that updates its content with the computed statistics. The code relies on D3’s `csv` and `csvFormat` APIs for parsing and formatting.

AI-generated description
MIT Licensed

Similar vizzes