Activity 6 -- Task 2
✓ Published0🌍 Public
A stacked bar chart displays regional sales across appliance, home, clothing, and shoe departments, with each region’s total sales determining the horizontal axis scale. The visualization uses D3 v7’s `d3.stack` to aggregate the CSV data, `d3.scaleBand` for the categorical y-axis, and `d3.scaleOrdinal` to assign colors. SVG rendering places grouped bars and a legend, while axes are formatted with `d3.axisBottom` and `d3.axisLeft`. A custom color palette and bold tick styling from the linked stylesheet enhance readability.
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.
MIT Licensed