Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Task9_Question2

Public visualization

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

A demonstration of Area chart.

Comments

Sign in to join the discussion.

MIT Licensed