Skip to main content
100%

Activity7_Areachart

✓ Published0🌍 Public
Llikhitha.sarahah01@gmail.com
Last edited Nov 2, 2024
Created on Nov 1, 2024
Forked from Hello VizHub

This area chart visualizes yearly CO2 emissions from 2010 to 2021 for North America, with data loaded from a remote text file. The code uses D3 v7 to group the data by region, apply a time scale for years, and generate filled SVG areas via `d3.area`. Two placeholder colors distinguish the single visible region, while axes, labels, and a legend are added using `d3.axisBottom` and `d3.axisLeft`. The visualization renders entirely as an SVG within a styled HTML container.

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