🌍 Public
Viewing a saved revision (read-only)
326aa2a320d944d7a41b265b21c2d08f
activity 6_Task 2
This interactive stacked bar chart shows quarterly sales for Nike, Puma, and Adidas, with each company as a horizontal bar segmented by financial quarter (Q1–Q4). The visualization uses d3.stack() to create stacked data, d3.scaleBand and d3.scaleLinear for positioning, and d3.axisLeft/axisBottom for axes. A tooltip displays the quarter and total sales on hover. Data comes from an embedded CSV file, rendered as SVG with a color-coded legend for each quarter.
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.