Skip to main content
100%

Activity-7.1_Ques2

✓ Published0🌍 Public
VVasanth Krishna
Last edited Nov 5, 2024
Created on Nov 5, 2024
Forked from Hello VizHub

This example shows a global CO₂ emissions area chart over time, with emissions plotted against year and a steelblue filled region beneath the curve. It uses D3 v7 to load CSV data from a GitHub gist, parse numeric values, and construct an SVG area chart via `d3.area`, `d3.scaleLinear`, and `d3.axisBottom`/`d3.axisLeft`. The chart includes labeled axes for year and emissions, a bold title, and styled axes with hidden tick lines. Data is fetched using `d3.csv` and rendered entirely as SVG elements.

AI-generated description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.
MIT Licensed

Similar vizzes