🌍 Public
Viewing a saved revision (read-only)
0574e89cd6c84cf2923c6896a929035d
Loading and Parsing CSV Data
This example demonstrates loading and parsing CSV data by displaying key statistics about the Global Obesity Rates 2014 dataset. It uses d3.csv to fetch the remote CSV file, then reports the file size in kilobytes, the number of data rows, and the number of columns in a large pre-formatted text element. The code also includes commented alternatives using fetch with async/await and d3.csvParse, as well as a nested promise chain, highlighting different approaches to asynchronous data handling in D3 v5.
AI-generated descriptionA program that loads and parses some CSV data. Global Obesity Rates 2014