Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

activity6_question2_11719493

Public visualization

Viewing a saved revision (read-only)

32b544c0e2a5414983a0bae733667b90

activity6_question2_11719493

0 stars1🌍 Public
Ssravani1969@gmail.com
Last edited Mar 29, 2025
Created on Mar 29, 2025
Forked from Hello VizHub

This stacked bar chart displays sales volumes across five regions (North, South, East, West, Central) broken down into five product categories. The horizontal bars are segmented by category, with each region’s total sales represented on a linear scale. Using D3 v7, the code applies `d3.stack()` to aggregate category values, maps regions to a band scale for the y-axis, and retrieves data from `sales_data.csv`. Interactive tooltips appear on mouseover, and a legend is rendered via SVG rectangles and text elements.

AI-generated description