🌍 Public
Viewing a saved revision (read-only)
630bf6b4b11049cd8e09d7568ca04af8
Task9_Question2
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 descriptionA demonstration of Area chart.