Skip to main content
100%

Assignment2 Stacked Bar Chart

✓ Published0🌍 Public
Cchsaisriharsha@gmail.com
Last edited Jul 23, 2023
Created on Jul 21, 2023
Forked from Hello VizHub

This stacked bar chart visualizes sales costs aggregated by department, item category, and sales type using a hardcoded dataset. The chart groups bars by department, with sub-bars representing item categories and segments distinguishing domestic versus international sales. It uses D3.js v7 with SVG rendering, leveraging `d3.group` for data aggregation and `d3.scaleBand` and `d3.scaleLinear` for positioning. Color scales differentiate departments across sales types, while axes and labels clarify the department and cost dimensions, though international segments are stacked alongside domestic totals.

AI-generated description
MIT Licensed

Similar vizzes