Activity 8_Q2.3
A stacked bar chart shows the proportional regional sales distribution for four gaming platforms: PC, PlayStation, Xbox, and Nintendo Switch, with each bar totaling 100%. The visualization uses D3 v7 to load CSV data and render SVG elements, employing `d3.stack()` to create stacked series, `d3.scaleLinear` for the x-axis, and `d3.scaleBand` for the categorical y-axis. Interactive tooltips display exact percentages on hover, while a legend and axis labels clarify the chart's meaning.
AI-generated descriptionThe Influence of Gaming Platforms on Regional Sales
The distributed sales of different video game platforms across various regions is represented using the above stacked bar chart. The percentage of sales for each gaming platform in various regions of the world is represented by a bar. The entire sales distribution for each platform across the specified regions is indicated by the sum of the percentages for each platform, which equals 100%.