🌍 Public
Viewing a saved revision (read-only)
22d784b445ac4ac0a826b8b6ed2ad55f
Task9_Question2
This area chart visualizes carbon emissions over time, comparing liquid fuel and gas fuel consumption across multiple years. The data is loaded from a remote CSV file using d3.csv, with parsed numeric values for both fuel types. The visualization uses d3.area generators to create two semi-transparent filled regions, with steelblue representing liquid fuel and orange representing gas fuel. The chart includes linear scales for both axes, axis labels, and a legend, all rendered as SVG elements within an 800x400 pixel canvas.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.