activity6_question2_11719493
✓ Published2🌍 Public
This example visualizes the distribution of sales across five product categories (Electronics, Clothing, Furniture, Groceries, Pharmaceuticals) for five geographic regions. A horizontally stacked bar chart shows each region as a single bar, with segments colored according to category and scaled by total sales value. The chart is built with D3 v7, using SVG rendering and the `d3.stack()` API to compute cumulative values. Data is loaded from a CSV file, with axes, legend, and labels generated through D3’s scale and axis functions.
AI-generated descriptionMIT Licensed