🌍 Public
Viewing a saved revision (read-only)
9dd676e38632498392c306f86b81a2e9
Activity6_Question2
This example shows the weight of recycled office materials—Office Paper, OCC, and Single-Stream—across twelve months, displayed as horizontal stacked bars. Each bar represents one material type, divided into monthly segments colored by month. The visualization uses d3.stack to compute the stacked series, d3.scaleBand for the categorical y-axis, and d3.scaleLinear for the x-axis. Hovering over a segment reveals a tooltip with the precise weight for that month. Data is loaded from a CSV file and rendered as SVG.
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.