Presentation_Task6
This stacked area chart visualizes the total products available across five categories—Cosmetics, Clothing, Food/Beverages, Technology, and Books/Toys—from 2010 to 2023. Using d3.stack and d3.area with curveBasis, the SVG rendering displays each category as a filled area, colored via d3.scaleOrdinal with d3.schemeDark2. Labels are positioned through d3-area-label, while axes use d3.axisBottom and d3.axisLeft with a time scale for years. The code reads data from a CSV file and includes hover tooltips via SVG title elements.
AI-generated descriptionA stacked area chart of Global CO2 Emissions.
The segments "Solids", "Liquids", and "Gas" are the forms of fossil fuels being burned.
Uses d3-area-label to position labels.
Inspired by Scott Judson’s Block: Global Carbon Emissions Area Chart.