🌍 Public
Viewing a saved revision (read-only)
31a4402bf3eb47af9f5064b77466d222
Activity6_question3
This stacked bar chart shows how average February and March temperatures vary across multiple regions for each year from 2002 to 2006. Each bar is segmented by temperature category, with a legend identifying the eight region-month combinations. The visualization uses d3.csv to load the data, d3.stack to create the stacked series, and d3.scaleBand, d3.scaleLinear, and d3.scaleOrdinal for positioning and coloring. SVG rectangles render the stacked segments, with axes and legend generated via d3.axisBottom and d3.axisLeft. The code applies the d3.schemeCategory10 color palette to distinguish the temperature categories.
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.