🌍 Public
Viewing a saved revision (read-only)
be785957c8034124b94f9f4d2b31bcfb
question 2 stacked bar chart
This stacked bar chart shows sales by product category (Clothing, Equipment, Accessories) across five store locations, with each bar segment proportional to category revenue. Built with D3 v7, it uses `d3.stack()` to process the CSV data and `d3.scaleBand` and `d3.scaleLinear` for the axes. The SVG rendering includes interactive tooltips on mouseover and a custom color scale using `d3.scaleOrdinal`. The dataset comes from an embedded CSV file, and the chart features labeled axes and a legend.
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.