Skip to main content
100%

Loading and Parsing CSV Data

✓ Published0🌍 Public
OOleg Zhernovoy
Last edited Jun 22, 2022
Created on Jun 19, 2022

This example demonstrates loading and parsing CSV data using D3.js, displaying the data size in kilobytes, row count, and column count in a large text element. It uses the `d3.csv` method to fetch and parse the CSV file from a GitHub gist, then accesses the parsed data array and its `columns` property to calculate the metrics. The code also includes commented alternatives using `fetch` with `d3.csvParse` and a nested promise pyramid approach, though the active path runs the external DaData API POST request instead.

AI-generated description
MIT Licensed

Similar vizzes