Task 3 Question3
✓ Published0🌍 Public
This stacked bar chart visualizes phone brand sales (Apple, Samsung, Xiaomi) across five countries, with each bar segment representing a brand's contribution to total sales. The chart uses D3.js v7 with SVG rendering, loading data from a CSV file. It employs `d3.scaleBand` for the categorical x-axis, `d3.scaleLinear` for the numeric y-axis, and `d3.stack` to compute stacked segments. Hover tooltips display exact sales figures per brand and country. A color-coded legend identifies each brand.
AI-generated descriptionMIT Licensed