Aadesh Question 2 Activity 6
This stacked bar chart shows how rating levels distribute across six lifestyle categories, with each bar divided into segments representing the percentage of ratings below 5.0, 5.0–6.5, 6.5–7.5, 7.5–8.5, and above 8.5, summing to 100% per category. The chart uses d3.stack() to compute the stacked series, d3.scaleBand() for the categorical y-axis, and d3.scaleLinear() for the percentage x-axis. Hover interactions trigger a custom tooltip that displays the exact percentage for each rating segment. Data comes from a CSV file with pre-aggregated proportions, and the visualization is rendered as SVG using D3 v7.
AI-generated descriptionThe impact of genre on movie ratings
The stacked bar chart presents the impact of different categories on the distribution of rating levels. Each bar represents a category, and the sections within the bars show the percentage of each rating level within that category. The total percentage across all rating levels within a category sums to 100%.