Activity6-Question 2
✓ Published0🌍 Public
This stacked horizontal bar chart shows smartphone market share distribution across Samsung, Apple, Xiaomi, Oppo, and Others from 2019 to 2023. Each bar represents a company’s total market share across all years, colored by year using d3.scaleOrdinal. The visualization uses d3.stack() to layer year segments, d3.scaleBand for the categorical y-axis, and d3.scaleLinear for the percentage x-axis. Interactive hover effects trigger opacity changes and display tooltips showing year-specific market share values formatted with d3.format. Data comes from a CSV file loaded via d3.csv.
AI-generated descriptionMIT Licensed