Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Task9_Question2

Public visualization

Viewing a saved revision (read-only)

42c58f7158354653b5dfe31c12692ba2

Task9_Question2

0 stars0🌍 Public
KKeerthi
Last edited Apr 22, 2024
Created on Apr 21, 2024
Forked from Hello VizHub

This area chart visualizes carbon emissions from liquid, solid, and gas fuels over time, with each fuel type drawn as a separate line. The visualization uses d3.csv to load the dataset, d3.scaleBand for the year axis, d3.scaleLinear for the fuel consumption axis, and d3.area to generate the paths. Each fuel series is plotted using the area generator’s y() method, with x-axis positioned by the band width and y-axis scaled to the maximum value across all fuel types. The SVG rendering includes labeled axes and a styled chart 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.