Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Loading and Parsing Coronavirus Data

Public visualization

Viewing a saved revision (read-only)

6c605eefc68e46499834c3013b7ad9df

Loading and Parsing Coronavirus Data

0 stars0🌍 Public
Vvmonney
Last edited Oct 10, 2022
Created on Oct 10, 2022

This example demonstrates how to load and parse a CSV dataset containing CSS named colors using d3.csv. It displays the file size in kilobytes, the number of rows, and the number of columns in a large HTML <pre> element. The code fetches data from a GitHub gist URL and uses the Promise-based .then() method to process the returned array. It calculates the formatted CSV length with d3.csvFormat and reports the dataset’s dimensions.

AI-generated description