Skip to main content
100%

activity6_question2_11719493

✓ Published2🌍 Public
Ssravani1969@gmail.com
Last edited Mar 29, 2025
Created on Mar 29, 2025

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 description
MIT Licensed

Similar vizzes