🌍 Public
Viewing a saved revision (read-only)
1a30e0b2f4d348db925083ab009b968f
Fork of Loading Data - CO2 Emissions
This example shows raw historical CO2 emissions data from a Kaggle dataset, displaying each row as a JSON-formatted object in a `<pre>` element. The visualization begins with a loading state, then fetches and parses the CSV file using the Fetch API and D3’s `csvParse`. It converts the `year` and `value` columns to numbers and stores the array of country-level records in the app’s state, which is rendered via D3’s `select` and `join` methods.
AI-generated description