Skip to main content
100%

v3

✓ Published0🌍 Public
Ssrisailapu.rc@gmail.com
Last edited Apr 2, 2025
Created on Apr 2, 2025

This example visualizes global CO₂ emissions over time using a smooth line chart, with the x-axis representing years and the y-axis representing emissions in million tonnes. The chart filters the loaded CSV data for the "World" country and plots it as a red line. Built with D3.js v7, the code uses `d3.csv` for data loading, `d3.scaleLinear` for axes, `d3.line` with the `d3.curveCatmullRom` curve for the smoothed path, and `d3.axisBottom` and `d3.axisLeft` for labeled axes. The SVG rendering is configured within a fixed chart area, and the data originates from the `preprocessed_owid_co2_data.csv` file.

AI-generated description
MIT Licensed

Similar vizzes