Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Loading Data - CO2 Emissions

Public visualization

Viewing a saved revision (read-only)

fc09da62362d48da978a52f8fe6b430f

Fork of Loading Data - CO2 Emissions

0 stars0🌍 Public
BBrian Hulbert
Last edited Sep 8, 2025
Created on Sep 4, 2025
Forked from Loading Data

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

This is a data set of historical co2 emissons from different contries. https://www.kaggle.com/datasets/ulrikthygepedersen/co2-emissions-by-country Data attributes: Quantitative: value

Ordinal: Year